ports/84406: Update port: print/pslib
KATO Tsuguru
tkato432 at yahoo.com
Sun Jul 31 18:10:23 UTC 2005
>Number: 84406
>Category: ports
>Synopsis: Update port: print/pslib
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 31 18:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build on 4-stable
New file:
files/patch-src-pslib.c
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/print/pslib/Makefile print/pslib/Makefile
--- /usr/ports/print/pslib/Makefile Fri Jul 29 02:47:51 2005
+++ print/pslib/Makefile Fri Jul 29 03:07:03 2005
@@ -19,29 +19,18 @@
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 -urN /usr/ports/print/pslib/files/patch-src-pslib.c print/pslib/files/patch-src-pslib.c
--- /usr/ports/print/pslib/files/patch-src-pslib.c Thu Jan 1 09:00:00 1970
+++ print/pslib/files/patch-src-pslib.c Fri Jul 29 01:56:11 2005
@@ -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 -urN /usr/ports/print/pslib/pkg-plist print/pslib/pkg-plist
--- /usr/ports/print/pslib/pkg-plist Fri Jul 29 02:47:51 2005
+++ print/pslib/pkg-plist Fri Jul 29 03:13:16 2005
@@ -6,8 +6,7 @@
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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list