Reduce diff to upstream; install more files. Bump PKGREVISION.diff -r1.18 -r1.19 pkgsrc/graphics/tuxpaint-config/Makefile
(wiz)
@@ -1,25 +1,24 @@ | @@ -1,25 +1,24 @@ | |||
1 | # $NetBSD: Makefile,v 1.18 2014/08/23 21:40:46 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.19 2014/08/24 15:30:43 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= tuxpaint-config-0.0.13 | 3 | DISTNAME= tuxpaint-config-0.0.13 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= graphics | 5 | CATEGORIES= graphics | |
5 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tuxpaint/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tuxpaint/} | |
6 | 7 | |||
7 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
8 | HOMEPAGE= http://www.tuxpaint.org/ | 9 | HOMEPAGE= http://www.tuxpaint.org/ | |
9 | COMMENT= Configuration program for tuxpaint | 10 | COMMENT= Configuration program for tuxpaint | |
10 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
11 | 12 | |||
12 | USE_LANGUAGES= c++ | 13 | USE_LANGUAGES= c++ | |
13 | USE_TOOLS+= gmake msgfmt | 14 | USE_TOOLS+= gmake msgfmt | |
14 | 15 | |||
15 | INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} | 16 | INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX} | |
17 | INSTALL_MAKE_FLAGS+= MAN_PREFIX=${DESTDIR}${PREFIX}/${PKGMANDIR} | |||
18 | MAKE_FLAGS+= ARCH_LINKS=-lintl | |||
16 | INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 | 19 | INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 | |
17 | 20 | |||
18 | post-install: | |||
19 | ${FIND} ${DESTDIR}${PREFIX}/share/tuxpaint-config -name CVS -exec ${RM} -r {} \; 2>/dev/null || ${TRUE} | |||
20 | ${FIND} ${DESTDIR}${PREFIX}/share/tuxpaint-config -name .xvpics -exec ${RM} -r {} \; 2>/dev/null || ${TRUE} | |||
21 | ||||
22 | .include "../../devel/gettext-lib/buildlink3.mk" | 21 | .include "../../devel/gettext-lib/buildlink3.mk" | |
23 | .include "../../print/libpaper/buildlink3.mk" | 22 | .include "../../print/libpaper/buildlink3.mk" | |
24 | .include "../../x11/fltk13/buildlink3.mk" | 23 | .include "../../x11/fltk13/buildlink3.mk" | |
25 | .include "../../mk/bsd.pkg.mk" | 24 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,15 @@ | @@ -1,14 +1,15 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.5 2014/08/23 21:40:46 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.6 2014/08/24 15:30:43 wiz Exp $ | |
2 | X11R6/include/X11/pixmaps/tuxpaint-config.xpm | |||
2 | bin/tuxpaint-config | 3 | bin/tuxpaint-config | |
3 | man/man1/tuxpaint-config.1 | 4 | man/man1/tuxpaint-config.1 | |
4 | share/doc/tuxpaint-config/AUTHORS.txt | 5 | share/doc/tuxpaint-config/AUTHORS.txt | |
5 | share/doc/tuxpaint-config/CHANGES.txt | 6 | share/doc/tuxpaint-config/CHANGES.txt | |
6 | share/doc/tuxpaint-config/COPYING.txt | 7 | share/doc/tuxpaint-config/COPYING.txt | |
7 | share/doc/tuxpaint-config/README.txt | 8 | share/doc/tuxpaint-config/README.txt | |
8 | share/doc/tuxpaint-config/TODO.txt | 9 | share/doc/tuxpaint-config/TODO.txt | |
9 | share/doc/tuxpaint-config/html/README.html | 10 | share/doc/tuxpaint-config/html/README.html | |
10 | share/locale/ach/LC_MESSAGES/tuxpaint-config.mo | 11 | share/locale/ach/LC_MESSAGES/tuxpaint-config.mo | |
11 | share/locale/an/LC_MESSAGES/tuxpaint-config.mo | 12 | share/locale/an/LC_MESSAGES/tuxpaint-config.mo | |
12 | share/locale/ar/LC_MESSAGES/tuxpaint-config.mo | 13 | share/locale/ar/LC_MESSAGES/tuxpaint-config.mo | |
13 | share/locale/ast/LC_MESSAGES/tuxpaint-config.mo | 14 | share/locale/ast/LC_MESSAGES/tuxpaint-config.mo | |
14 | share/locale/bg/LC_MESSAGES/tuxpaint-config.mo | 15 | share/locale/bg/LC_MESSAGES/tuxpaint-config.mo | |
@@ -46,24 +47,25 @@ share/locale/ru/LC_MESSAGES/tuxpaint-con | @@ -46,24 +47,25 @@ share/locale/ru/LC_MESSAGES/tuxpaint-con | |||
46 | share/locale/sat/LC_MESSAGES/tuxpaint-config.mo | 47 | share/locale/sat/LC_MESSAGES/tuxpaint-config.mo | |
47 | share/locale/sk/LC_MESSAGES/tuxpaint-config.mo | 48 | share/locale/sk/LC_MESSAGES/tuxpaint-config.mo | |
48 | share/locale/sl/LC_MESSAGES/tuxpaint-config.mo | 49 | share/locale/sl/LC_MESSAGES/tuxpaint-config.mo | |
49 | share/locale/son/LC_MESSAGES/tuxpaint-config.mo | 50 | share/locale/son/LC_MESSAGES/tuxpaint-config.mo | |
50 | share/locale/sr/LC_MESSAGES/tuxpaint-config.mo | 51 | share/locale/sr/LC_MESSAGES/tuxpaint-config.mo | |
51 | share/locale/sr@latin/LC_MESSAGES/tuxpaint-config.mo | 52 | share/locale/sr@latin/LC_MESSAGES/tuxpaint-config.mo | |
52 | share/locale/sv/LC_MESSAGES/tuxpaint-config.mo | 53 | share/locale/sv/LC_MESSAGES/tuxpaint-config.mo | |
53 | share/locale/tr/LC_MESSAGES/tuxpaint-config.mo | 54 | share/locale/tr/LC_MESSAGES/tuxpaint-config.mo | |
54 | share/locale/uk/LC_MESSAGES/tuxpaint-config.mo | 55 | share/locale/uk/LC_MESSAGES/tuxpaint-config.mo | |
55 | share/locale/vec/LC_MESSAGES/tuxpaint-config.mo | 56 | share/locale/vec/LC_MESSAGES/tuxpaint-config.mo | |
56 | share/locale/vi/LC_MESSAGES/tuxpaint-config.mo | 57 | share/locale/vi/LC_MESSAGES/tuxpaint-config.mo | |
57 | share/locale/zh_TW/LC_MESSAGES/tuxpaint-config.mo | 58 | share/locale/zh_TW/LC_MESSAGES/tuxpaint-config.mo | |
58 | share/locale/zu/LC_MESSAGES/tuxpaint-config.mo | 59 | share/locale/zu/LC_MESSAGES/tuxpaint-config.mo | |
60 | share/pixmaps/tuxpaint-config.png | |||
59 | share/tuxpaint-config/images/icon-win32.ico | 61 | share/tuxpaint-config/images/icon-win32.ico | |
60 | share/tuxpaint-config/images/icon.png | 62 | share/tuxpaint-config/images/icon.png | |
61 | share/tuxpaint-config/images/icon16x16.png | 63 | share/tuxpaint-config/images/icon16x16.png | |
62 | share/tuxpaint-config/images/icon32x32.png | 64 | share/tuxpaint-config/images/icon32x32.png | |
63 | share/tuxpaint-config/images/icon32x32.xpm | 65 | share/tuxpaint-config/images/icon32x32.xpm | |
64 | share/tuxpaint-config/images/icon48x48.png | 66 | share/tuxpaint-config/images/icon48x48.png | |
65 | share/tuxpaint-config/images/win32-icon16x16x16.png | 67 | share/tuxpaint-config/images/win32-icon16x16x16.png | |
66 | share/tuxpaint-config/images/win32-icon16x16x256.png | 68 | share/tuxpaint-config/images/win32-icon16x16x256.png | |
67 | share/tuxpaint-config/images/win32-icon32x32x16.png | 69 | share/tuxpaint-config/images/win32-icon32x32x16.png | |
68 | share/tuxpaint-config/images/win32-icon32x32x256.png | 70 | share/tuxpaint-config/images/win32-icon32x32x256.png | |
69 | share/tuxpaint-config/images/win32-icon48x48x256.png | 71 | share/tuxpaint-config/images/win32-icon48x48x256.png |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2014/08/23 21:40:46 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.7 2014/08/24 15:30:43 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (tuxpaint-config-0.0.13.tar.gz) = 8b31ddf91eb130824351c652da87cfd6275304bb | 3 | SHA1 (tuxpaint-config-0.0.13.tar.gz) = 8b31ddf91eb130824351c652da87cfd6275304bb | |
4 | RMD160 (tuxpaint-config-0.0.13.tar.gz) = 991f5b14a6e1f7082eba1f8eb34c4e5aaf45926d | 4 | RMD160 (tuxpaint-config-0.0.13.tar.gz) = 991f5b14a6e1f7082eba1f8eb34c4e5aaf45926d | |
5 | Size (tuxpaint-config-0.0.13.tar.gz) = 451667 bytes | 5 | Size (tuxpaint-config-0.0.13.tar.gz) = 451667 bytes | |
6 | SHA1 (patch-aa) = 7e6e6611ed2b39a7639ed0ab607dd24ffb60407b | 6 | SHA1 (patch-aa) = 4d5419eeded5c75b263ffa483db5b96b2181e97a |
@@ -1,120 +1,19 @@ | @@ -1,120 +1,19 @@ | |||
1 | $NetBSD: patch-aa,v 1.5 2014/08/23 21:40:47 wiz Exp $ | 1 | $NetBSD: patch-aa,v 1.6 2014/08/24 15:30:43 wiz Exp $ | |
2 | ||||
3 | "install -D" is not portable; create directories manually. | |||
2 | 4 | |||
3 | --- Makefile.orig 2011-02-22 18:57:26.000000000 +0000 | 5 | --- Makefile.orig 2011-02-22 18:57:26.000000000 +0000 | |
4 | +++ Makefile | 6 | +++ Makefile | |
5 | @@ -20,7 +20,7 @@ VER_DATE=`date +"%Y-%m-%d"` | |||
6 | ||||
7 | # Where to install things: | |||
8 | ||||
9 | -PREFIX=/usr/local | |||
10 | +#PREFIX=/usr/local | |||
11 | ||||
12 | ||||
13 | # Program: | |||
14 | @@ -37,7 +37,7 @@ DATA_PREFIX=$(PREFIX)/share/tuxpaint-con | |||
15 | # Docs and man page: | |||
16 | ||||
17 | DOC_PREFIX=$(PREFIX)/share/doc/tuxpaint-config/ | |||
18 | -MAN_PREFIX=$(PREFIX)/share/man/ | |||
19 | +MAN_PREFIX=$(PREFIX)/${PKGMANDIR} | |||
20 | ||||
21 | ||||
22 | # Tux Paint's 'System-wide' Config file: | |||
23 | @@ -84,7 +84,7 @@ FLTK_LIBS=`fltk-config --ldflags` | |||
24 | PAPER_LIB=-lpaper | |||
25 | ||||
26 | # Default CFLAGS: | |||
27 | -CFLAGS=-O2 -Wall | |||
28 | +CFLAGS+=-Wall | |||
29 | ||||
30 | # The entire set of CFLAGS: | |||
31 | ALL_CFLAGS=$(CFLAGS) $(FLTK_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \ | |||
32 | @@ -154,8 +154,7 @@ install-win32: | |||
33 | # to do this as superuser ("root")) | |||
34 | ||||
35 | install: install-bin install-data install-man install-doc \ | |||
36 | - install-gnome install-kde install-kde-icons \ | |||
37 | - install-icon install-gettext | |||
38 | + install-gettext | |||
39 | @echo | |||
40 | @echo "All done! Now (preferably NOT as 'root' superuser)," | |||
41 | @echo "you can type the command 'tuxpaint-config' to run the" | |||
42 | @@ -255,8 +254,7 @@ install-icon: | |||
43 | install-bin: | |||
44 | @echo | |||
45 | @echo "...Installing program itself..." | |||
46 | - @cp tuxpaint-config $(BIN_PREFIX) | |||
47 | - @chmod a+rx,g-w,o-w $(BIN_PREFIX)/tuxpaint-config$(EXE_EXT) | |||
48 | + ${BSD_INSTALL_PROGRAM} tuxpaint-config $(BIN_PREFIX) | |||
49 | ||||
50 | ||||
51 | # Install the data (sound, graphics, fonts): | |||
52 | @@ -264,7 +262,7 @@ install-bin: | |||
53 | install-data: | |||
54 | @echo | |||
55 | @echo "...Installing data files..." | |||
56 | - @install -d $(DATA_PREFIX) | |||
57 | + ${BSD_INSTALL_DATA_DIR} $(DATA_PREFIX) | |||
58 | @cp -R data/* $(DATA_PREFIX) | |||
59 | @chmod -R a+rX,g-w,o-w $(DATA_PREFIX) | |||
60 | ||||
61 | @@ -275,28 +273,22 @@ install-doc: | |||
62 | @echo | |||
63 | @echo "...Installing documentation..." | |||
64 | @echo "(English)" | |||
65 | - @install -d $(DOC_PREFIX) | |||
66 | - @install -d $(DOC_PREFIX)/html | |||
67 | - @cp docs/AUTHORS.txt $(DOC_PREFIX) | |||
68 | - @cp docs/CHANGES.txt $(DOC_PREFIX) | |||
69 | - @cp docs/COPYING.txt $(DOC_PREFIX) | |||
70 | - @cp docs/README.txt $(DOC_PREFIX) | |||
71 | - @cp docs/html/README.html $(DOC_PREFIX)/html | |||
72 | - @cp docs/TODO.txt $(DOC_PREFIX) | |||
73 | - @echo "(...Setting permissions)" | |||
74 | - @chmod -R a+rx,g-w,o-w $(DOC_PREFIX) | |||
75 | + ${BSD_INSTALL_DATA_DIR} $(DOC_PREFIX) | |||
76 | + ${BSD_INSTALL_DATA_DIR} $(DOC_PREFIX)/html | |||
77 | + ${BSD_INSTALL_DATA} docs/AUTHORS.txt $(DOC_PREFIX) | |||
78 | + ${BSD_INSTALL_DATA} docs/CHANGES.txt $(DOC_PREFIX) | |||
79 | + ${BSD_INSTALL_DATA} docs/COPYING.txt $(DOC_PREFIX) | |||
80 | + ${BSD_INSTALL_DATA} docs/README.txt $(DOC_PREFIX) | |||
81 | + ${BSD_INSTALL_DATA} docs/html/README.html $(DOC_PREFIX)/html | |||
82 | + ${BSD_INSTALL_DATA} docs/TODO.txt $(DOC_PREFIX) | |||
83 | ||||
84 | ||||
85 | # Install the man page: | |||
86 | ||||
87 | install-man: | |||
88 | @echo "...Installing man pages..." | |||
89 | - # man1 directory... | |||
90 | - @install -d $(MAN_PREFIX)/man1/ | |||
91 | # tuxpaint-config.1 | |||
92 | - @cp src/tuxpaint-config.1 $(MAN_PREFIX)/man1/ | |||
93 | - @gzip -9f $(MAN_PREFIX)/man1/tuxpaint-config.1 | |||
94 | - @chmod a+rx,g-w,o-w $(MAN_PREFIX)/man1/tuxpaint-config.1.gz | |||
95 | + ${BSD_INSTALL_MAN} src/tuxpaint-config.1 $(MAN_PREFIX)/man1/ | |||
96 | ||||
97 | ||||
98 | # Build the program! | |||
99 | @@ -306,7 +298,7 @@ tuxpaint-config: obj/tuxpaint-config.o o | |||
100 | @echo Linking | |||
101 | $(CXX) $(ALL_CFLAGS) -o tuxpaint-config obj/tuxpaint-config.o \ | |||
102 | obj/tuxpaint-config2.o obj/defaults.o $(ARCH_LIBS) \ | |||
103 | - $(FLTK_LIBS) $(ARCH_LINKS) $(PAPER_LIB) | |||
104 | + $(FLTK_LIBS) $(ARCH_LINKS) $(PAPER_LIB) -lintl | |||
105 | ||||
106 | ||||
107 | # Build the object for the program! | |||
108 | @@ -338,9 +330,13 @@ obj/resource.o: visualc/resource.rc visu | 7 | @@ -338,9 +330,13 @@ obj/resource.o: visualc/resource.rc visu | |
109 | POFILES:=$(wildcard src/po/*.po) | 8 | POFILES:=$(wildcard src/po/*.po) | |
110 | MOFILES:=$(patsubst src/po/%.po,trans/%.mo,$(POFILES)) | 9 | MOFILES:=$(patsubst src/po/%.po,trans/%.mo,$(POFILES)) | |
111 | INSTALLED_MOFILES:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo,$(MOFILES)) | 10 | INSTALLED_MOFILES:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo,$(MOFILES)) | |
112 | +INSTALLED_MODIRS:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES,$(MOFILES)) | 11 | +INSTALLED_MODIRS:=$(patsubst trans/%.mo,$(LOCALE_PREFIX)/%/LC_MESSAGES,$(MOFILES)) | |
113 | 12 | |||
114 | +$(INSTALLED_MODIRS): $(LOCALE_PREFIX)/%/LC_MESSAGES: trans/%.mo | 13 | +$(INSTALLED_MODIRS): $(LOCALE_PREFIX)/%/LC_MESSAGES: trans/%.mo | |
115 | + install -d -m 755 $@ | 14 | + install -d -m 755 $@ | |
116 | $(INSTALLED_MOFILES): $(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo: trans/%.mo | 15 | $(INSTALLED_MOFILES): $(LOCALE_PREFIX)/%/LC_MESSAGES/tuxpaint-config.mo: trans/%.mo | |
117 | - install -D -m 644 $< $@ | 16 | - install -D -m 644 $< $@ | |
118 | + install -m 644 $< $@ | 17 | + install -m 644 $< $@ | |
119 | + | 18 | + | |
120 | 19 |