diff options
author | Renato Botelho <garga@FreeBSD.org> | 2005-08-01 12:50:02 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2005-08-01 12:50:02 +0000 |
commit | 2fa12ea571d4bc03026ceace56079f2b917f97ba (patch) | |
tree | 248a954e507f7e7fb9bc4ebdae30247ff4b4b690 /print/pslib | |
parent | f911fb6aa5003350560bc52e6cbceae9f5611734 (diff) | |
download | ports-2fa12ea571d4bc03026ceace56079f2b917f97ba.tar.gz ports-2fa12ea571d4bc03026ceace56079f2b917f97ba.zip |
Notes
Diffstat (limited to 'print/pslib')
-rw-r--r-- | print/pslib/Makefile | 27 | ||||
-rw-r--r-- | print/pslib/files/patch-src-pslib.c | 10 | ||||
-rw-r--r-- | print/pslib/pkg-plist | 3 |
3 files changed, 19 insertions, 21 deletions
diff --git a/print/pslib/Makefile b/print/pslib/Makefile index de53e24fb331..2fab0ce2dc46 100644 --- a/print/pslib/Makefile +++ b/print/pslib/Makefile @@ -19,29 +19,18 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ png.5:${PORTSDIR}/graphics/png USE_GNOME= gnomehack gnometarget intlhack pkgconfig -USE_REINPLACE= yes USE_LIBTOOL_VER= 15 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" + LDFLAGS="-L${LOCALBASE}/lib" \ + ac_cv_prog_DOC_TO_MAN="" INSTALLS_SHLIB= yes -.if !defined(WITHOUT_NLS) -USE_GETTEXT= yes -PLIST_SUB= GETTEXT="" -.else -PLIST_SUB= GETTEXT="@comment " -.endif - -.include <bsd.port.pre.mk> - -.if (${OSVERSION} < 500000) -BROKEN= Doesn't build on < 5.x -.endif - -post-configure: .if defined(WITHOUT_NLS) - @${REINPLACE_CMD} -E 's|(SUBDIRS = data include src) po|\1|' \ - ${WRKSRC}/Makefile +CONFIGURE_ENV+= ac_cv_header_libintl_h=no +PLIST_SUB+= NLS="@comment " +.else +USE_GETTEXT= yes +PLIST_SUB+= NLS="" .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/print/pslib/files/patch-src-pslib.c b/print/pslib/files/patch-src-pslib.c new file mode 100644 index 000000000000..760607578e7b --- /dev/null +++ b/print/pslib/files/patch-src-pslib.c @@ -0,0 +1,10 @@ +--- src/pslib.c.orig Wed Jul 27 15:08:15 2005 ++++ src/pslib.c Fri Jul 29 01:56:04 2005 +@@ -29,6 +29,7 @@ + #include <strings.h> + #include <time.h> + #include <math.h> ++#include <sys/types.h> + #include <sys/select.h> + #include <sys/stat.h> + #ifndef WIN32 diff --git a/print/pslib/pkg-plist b/print/pslib/pkg-plist index 1de64ae5ab72..c619eb36bfaa 100644 --- a/print/pslib/pkg-plist +++ b/print/pslib/pkg-plist @@ -6,8 +6,7 @@ lib/libps.a lib/libps.so lib/libps.so.2 libdata/pkgconfig/libps.pc -%%GETTEXT%%share/locale/de/LC_MESSAGES/pslib.mo -%%GETTEXT%%@unexec rmdir %D/share/locale/de/LC_MESSAGES 2>/dev/null || true +%%NLS%%share/locale/de/LC_MESSAGES/pslib.mo %%DATADIR%%/draft.ps %%DATADIR%%/exectime.ps %%DATADIR%%/grid.ps |