- fix build for png-1.4.1

This commit is contained in:
Dirk Meyer 2010-03-30 08:14:43 +00:00
parent 3130afd9f6
commit a48d5f5093
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251796
3 changed files with 11 additions and 1 deletions

View file

@ -46,11 +46,17 @@ post-patch:
@${REINPLACE_CMD} -e '236,238d' ${WRKSRC}/setup.py
# fixup library detection
@${REINPLACE_CMD} -e "s/libpng/libpng12/" ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e "s/libpng/libpng14/" ${WRKSRC}/setup.py
@${REINPLACE_CMD} \
-e "s,/usr/include/jpeglib.h,${LOCALBASE}/include/jpeglib.h," \
${WRKSRC}/setup.py
# png14
@${REINPLACE_CMD} -e "s/png_infopp_NULL/NULL/g" \
-e "s/png_bytepp_NULL/NULL/g" \
-e "s/int_p_NULL/NULL/g" \
${WRKSRC}/fract4d/c/imageIO.cpp
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}

View file

@ -46,6 +46,8 @@ post-patch:
@${REINPLACE_CMD} -e 's|="/usr"|="${LOCALBASE}"|g ; \
s|/usr/X11R6|${LOCALBASE}|g ; \
s|GTK_LIB -s|GTK_LIB|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
${WRKSRC}/src/png.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \

View file

@ -204,6 +204,8 @@ post-patch:
@${REINPLACE_CMD} -e '/^LIBS = / s|$$| @LIBINTL@ -lz|' \
${WRKSRC}/tests/Makefile.in
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/lib/in_smb.c
@${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
${WRKSRC}/lib/pngreader.c
.if !defined(NOPORTDOCS)
post-install: