View | Details | Raw Unified | Return to bug 84406
Collapse All | Expand All

(-)print/pslib/Makefile (-19 / +8 lines)
Lines 19-47 Link Here
19
		png.5:${PORTSDIR}/graphics/png
19
		png.5:${PORTSDIR}/graphics/png
20
20
21
USE_GNOME=	gnomehack gnometarget intlhack pkgconfig
21
USE_GNOME=	gnomehack gnometarget intlhack pkgconfig
22
USE_REINPLACE=	yes
23
USE_LIBTOOL_VER=	15
22
USE_LIBTOOL_VER=	15
24
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
23
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
25
		LDFLAGS="-L${LOCALBASE}/lib"
24
		LDFLAGS="-L${LOCALBASE}/lib" \
25
		ac_cv_prog_DOC_TO_MAN=""
26
INSTALLS_SHLIB=	yes
26
INSTALLS_SHLIB=	yes
27
27
28
.if !defined(WITHOUT_NLS)
29
USE_GETTEXT=	yes
30
PLIST_SUB=	GETTEXT=""
31
.else
32
PLIST_SUB=	GETTEXT="@comment "
33
.endif
34
35
.include <bsd.port.pre.mk>
36
37
.if (${OSVERSION} < 500000)
38
BROKEN=	Doesn't build on < 5.x
39
.endif
40
41
post-configure:
42
.if defined(WITHOUT_NLS)
28
.if defined(WITHOUT_NLS)
43
	@${REINPLACE_CMD} -E 's|(SUBDIRS = data include src) po|\1|' \
29
CONFIGURE_ENV+=	ac_cv_header_libintl_h=no
44
		${WRKSRC}/Makefile
30
PLIST_SUB+=	NLS="@comment "
31
.else
32
USE_GETTEXT=	yes
33
PLIST_SUB+=	NLS=""
45
.endif
34
.endif
46
35
47
.include <bsd.port.post.mk>
36
.include <bsd.port.mk>
(-)print/pslib/files/patch-src-pslib.c (+10 lines)
Line 0 Link Here
1
--- src/pslib.c.orig	Wed Jul 27 15:08:15 2005
2
+++ src/pslib.c	Fri Jul 29 01:56:04 2005
3
@@ -29,6 +29,7 @@
4
 #include <strings.h>
5
 #include <time.h>
6
 #include <math.h>
7
+#include <sys/types.h>
8
 #include <sys/select.h>
9
 #include <sys/stat.h>
10
 #ifndef WIN32
(-)print/pslib/pkg-plist (-2 / +1 lines)
Lines 6-13 Link Here
6
lib/libps.so
6
lib/libps.so
7
lib/libps.so.2
7
lib/libps.so.2
8
libdata/pkgconfig/libps.pc
8
libdata/pkgconfig/libps.pc
9
%%GETTEXT%%share/locale/de/LC_MESSAGES/pslib.mo
9
%%NLS%%share/locale/de/LC_MESSAGES/pslib.mo
10
%%GETTEXT%%@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true
11
%%DATADIR%%/draft.ps
10
%%DATADIR%%/draft.ps
12
%%DATADIR%%/exectime.ps
11
%%DATADIR%%/exectime.ps
13
%%DATADIR%%/grid.ps
12
%%DATADIR%%/grid.ps

Return to bug 84406