summaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2005-08-01 12:50:02 +0000
committergarga <garga@FreeBSD.org>2005-08-01 12:50:02 +0000
commit29df75d10f1d652ac66eba672a993c06ac83a6fe (patch)
treedb074437812ecf3c8758069765f966fd043314ef /print
parent59b80ffac4df4bdaaab11e7fe24f2025cbbce688 (diff)
downloadFreeBSD-ports-29df75d10f1d652ac66eba672a993c06ac83a6fe.zip
FreeBSD-ports-29df75d10f1d652ac66eba672a993c06ac83a6fe.tar.gz
Unbreak on 4.x
PR: ports/84406 Submitted by: Ports Fury
Diffstat (limited to 'print')
-rw-r--r--print/pslib/Makefile27
-rw-r--r--print/pslib/files/patch-src-pslib.c10
-rw-r--r--print/pslib/pkg-plist3
3 files changed, 19 insertions, 21 deletions
diff --git a/print/pslib/Makefile b/print/pslib/Makefile
index de53e24..2fab0ce 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 0000000..7606075
--- /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 1de64ae..c619eb3 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
OpenPOWER on IntegriCloud