diff -urN /usr/ports/print/pslib/Makefile print/pslib/Makefile --- /usr/ports/print/pslib/Makefile Fri Feb 24 00:46:09 2006 +++ print/pslib/Makefile Thu Jun 8 22:13:22 2006 @@ -7,8 +7,7 @@ # PORTNAME= pslib -PORTVERSION= 0.2.6 -PORTREVISION= 1 +PORTVERSION= 0.2.7 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,10 +16,12 @@ COMMENT= A C-library for generating multi page PostScript documents LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ - png.5:${PORTSDIR}/graphics/png + png.5:${PORTSDIR}/graphics/png \ + tiff.4:${PORTSDIR}/graphics/tiff USE_GNOME= gnomehack gnometarget intlhack pkgconfig -GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_AUTOTOOLS= libtool:15 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ ac_cv_prog_DOC_TO_MAN="" @@ -32,6 +33,11 @@ .else USE_GETTEXT= yes PLIST_SUB+= NLS="" +.endif + +post-patch: +.if defined(WITHOUT_NLS) + @${REINPLACE_CMD} -e 's|@USE_NLS@|no|g' ${WRKSRC}/po/Makefile.in.in .endif .include diff -urN /usr/ports/print/pslib/distinfo print/pslib/distinfo --- /usr/ports/print/pslib/distinfo Sat Nov 26 19:30:39 2005 +++ print/pslib/distinfo Thu Jun 8 12:50:51 2006 @@ -1,3 +1,3 @@ -MD5 (pslib-0.2.6.tar.gz) = 6727e5086c7e6795e7b0db6f49442a2e -SHA256 (pslib-0.2.6.tar.gz) = 48a61dd1f22fa6e2175e32560039ea9875121281f437377f60d74bc4aa92f334 -SIZE (pslib-0.2.6.tar.gz) = 486812 +MD5 (pslib-0.2.7.tar.gz) = 17a6a461276fd4eb3fd12ced926aeee1 +SHA256 (pslib-0.2.7.tar.gz) = 653ec4b1685500d3eb86dc89093854e1928f040b457556365bd52a31dda9a84d +SIZE (pslib-0.2.7.tar.gz) = 510671 diff -urN /usr/ports/print/pslib/files/patch-src__bmp.c print/pslib/files/patch-src__bmp.c --- /usr/ports/print/pslib/files/patch-src__bmp.c Thu Jan 1 09:00:00 1970 +++ print/pslib/files/patch-src__bmp.c Thu Jun 8 18:59:39 2006 @@ -0,0 +1,31 @@ +--- src/bmp.c.orig Mon Apr 24 23:25:31 2006 ++++ src/bmp.c Thu Jun 8 18:59:00 2006 +@@ -41,10 +41,28 @@ + #include + #include + ++#if (defined(__unix__) || defined(unix)) && !defined(USG) ++#include ++#endif ++ ++#if defined(__FreeBSD__) && __FreeBSD_version >= 470000 ++#include ++ ++#if __FreeBSD_version >= 500000 ++#define BMPSwabShort(x) bswap16(x) ++#define BMPSwabLong(x) bswap32(x) ++#else ++#define BMPSwabShort(x) (be16toh(x)) ++#define BMPSwabLong(x) (be32toh(x)) ++#endif ++#endif ++ ++#ifdef linux + #include + + #define BMPSwabShort(x) *x = bswap_16 (*x) + #define BMPSwabLong(x) *x = bswap_32 (*x) ++#endif + + #include +