| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.70.4.1 2010/07/29 13:10:55 tron Exp $ | | 1 | # $NetBSD: Makefile,v 1.70.4.2 2010/07/29 13:55:26 tron Exp $ |
2 | | | 2 | |
3 | DISTNAME= gv-3.7.1 | | 3 | DISTNAME= gv-3.7.1 |
4 | CATEGORIES= print | | 4 | CATEGORIES= print |
5 | MASTER_SITES= ${MASTER_SITE_GNU:=gv/} | | 5 | MASTER_SITES= ${MASTER_SITE_GNU:=gv/} |
6 | | | 6 | |
7 | MAINTAINER= pkgsrc-users@NetBSD.org | | 7 | MAINTAINER= pkgsrc-users@NetBSD.org |
8 | HOMEPAGE= http://www.gnu.org/software/gv/ | | 8 | HOMEPAGE= http://www.gnu.org/software/gv/ |
9 | COMMENT= PostScript and PDF previewer | | 9 | COMMENT= PostScript and PDF previewer |
10 | LICENSE= gnu-gpl-v3 | | 10 | LICENSE= gnu-gpl-v3 |
11 | | | 11 | |
12 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
13 | | | 13 | |
14 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
| @@ -22,33 +22,39 @@ LIBS+= ${BUILDLINK_LDADD.getopt} | | | @@ -22,33 +22,39 @@ LIBS+= ${BUILDLINK_LDADD.getopt} |
22 | XAW_TYPE?= 3d | | 22 | XAW_TYPE?= 3d |
23 | .include "../../mk/bsd.prefs.mk" | | 23 | .include "../../mk/bsd.prefs.mk" |
24 | .if ${XAW_TYPE} == "standard" | | 24 | .if ${XAW_TYPE} == "standard" |
25 | XAW_TYPE= 3d | | 25 | XAW_TYPE= 3d |
26 | .endif | | 26 | .endif |
27 | | | 27 | |
28 | # Solaris-2.{8,9}/sparc are missing setenv() and unsetenv() | | 28 | # Solaris-2.{8,9}/sparc are missing setenv() and unsetenv() |
29 | # it is probably true that 5.6, 5.7, 5.8, and 5.9 all have | | 29 | # it is probably true that 5.6, 5.7, 5.8, and 5.9 all have |
30 | # this problem. It appears that 5.10 does not need this flag. | | 30 | # this problem. It appears that 5.10 does not need this flag. |
31 | .if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.[6789]) | | 31 | .if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.[6789]) |
32 | CONFIGURE_ARGS+= --enable-setenv-code | | 32 | CONFIGURE_ARGS+= --enable-setenv-code |
33 | .endif | | 33 | .endif |
34 | | | 34 | |
35 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin" | | 35 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin" \ |
| | | 36 | || ${OPSYS} == "OpenBSD" || ${OPSYS} == "DragonFly" |
36 | CONFIGURE_ARGS+= --enable-SIGCHLD-fallback | | 37 | CONFIGURE_ARGS+= --enable-SIGCHLD-fallback |
37 | .endif | | 38 | .endif |
38 | | | 39 | |
| | | 40 | # XXX: bad configure test for libiconv from pkgsrc, so skip it. |
| | | 41 | CONFIGURE_ENV+= ac_cv_lib_iconv_iconv_open=yes |
| | | 42 | LIBS+= ${BUILDLINK_LDADD.iconv} |
| | | 43 | |
39 | SUBST_CLASSES+= optlong1 | | 44 | SUBST_CLASSES+= optlong1 |
40 | SUBST_STAGE.optlong1= post-extract | | 45 | SUBST_STAGE.optlong1= post-extract |
41 | SUBST_FILES.optlong1= src/gv_message.h | | 46 | SUBST_FILES.optlong1= src/gv_message.h |
42 | SUBST_SED.optlong1= -e 's/\[-\]-/--/' | | 47 | SUBST_SED.optlong1= -e 's/\[-\]-/--/' |
43 | | | 48 | |
44 | SUBST_CLASSES+= optlong2 | | 49 | SUBST_CLASSES+= optlong2 |
45 | SUBST_STAGE.optlong2= post-extract | | 50 | SUBST_STAGE.optlong2= post-extract |
46 | SUBST_FILES.optlong2= doc/gv.1 | | 51 | SUBST_FILES.optlong2= doc/gv.1 |
47 | SUBST_SED.optlong2= -e 's/\[\\-\]\\-/\\-\\-/' | | 52 | SUBST_SED.optlong2= -e 's/\[\\-\]\\-/\\-\\-/' |
48 | | | 53 | |
49 | REPLACE_PERL+= src/gv-update-userconfig.in | | 54 | REPLACE_PERL+= src/gv-update-userconfig.in |
50 | | | 55 | |
| | | 56 | .include "../../converters/libiconv/buildlink3.mk" |
51 | .include "../../devel/libgetopt/buildlink3.mk" | | 57 | .include "../../devel/libgetopt/buildlink3.mk" |
52 | .include "../../x11/libXinerama/buildlink3.mk" | | 58 | .include "../../x11/libXinerama/buildlink3.mk" |
53 | .include "../../mk/xaw.buildlink3.mk" | | 59 | .include "../../mk/xaw.buildlink3.mk" |
54 | .include "../../mk/bsd.pkg.mk" | | 60 | .include "../../mk/bsd.pkg.mk" |