- use STAGEDIR
This commit is contained in:
parent
6fe44a3eac
commit
70bb0d8106
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334919
2 changed files with 12 additions and 13 deletions
|
@ -12,7 +12,6 @@ MAINTAINER= dinoex@FreeBSD.org
|
|||
COMMENT= Library for manipulating PNG images
|
||||
|
||||
PORTSCOUT= limit:^1\.5\.
|
||||
NO_STAGE= yes
|
||||
|
||||
USE_XZ= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
@ -22,9 +21,6 @@ USE_LDCONFIG= yes
|
|||
CMAKE_ARGS+= -DPNG_MAN_DIR:STRING=man
|
||||
SOSUFFIX= .${PORTVERSION:E}
|
||||
|
||||
MAN3= libpng.3 libpngpf.3
|
||||
MAN5= png.5
|
||||
|
||||
OPTIONS_DEFINE=APNG
|
||||
OPTIONS_DEFAULT=APNG
|
||||
APNG_DESC=Enable Animated PNG support
|
||||
|
@ -62,18 +58,18 @@ post-build:
|
|||
${FALSE}; \
|
||||
fi)
|
||||
|
||||
pre-su-install:
|
||||
@${MKDIR} ${PREFIX}/include/libpng
|
||||
@${MKDIR} ${PREFIX}/libdata/pkgconfig
|
||||
pre-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/include/libpng
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/pngdebug.h ${WRKSRC}/pnginfo.h \
|
||||
${WRKSRC}/pngpriv.h ${WRKSRC}/pngstruct.h \
|
||||
${PREFIX}/include/libpng15/
|
||||
-${RMDIR} ${PREFIX}/include/libpng
|
||||
${RM} ${PREFIX}/libdata/pkgconfig/libpng.pc
|
||||
${LN} -sf libpng15.pc ${PREFIX}/libdata/pkgconfig/libpng.pc
|
||||
${RM} ${PREFIX}/lib/libpng15.so.15
|
||||
${MV} ${PREFIX}/lib/libpng15.so.15${SOSUFFIX} ${PREFIX}/lib/libpng15.so.15
|
||||
${STAGEDIR}${PREFIX}/include/libpng15/
|
||||
-${RMDIR} ${STAGEDIR}${PREFIX}/include/libpng
|
||||
${RM} ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libpng.pc
|
||||
${LN} -sf libpng15.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libpng.pc
|
||||
${RM} ${STAGEDIR}${PREFIX}/lib/libpng15.so.15
|
||||
${MV} ${STAGEDIR}${PREFIX}/lib/libpng15.so.15${SOSUFFIX} ${STAGEDIR}${PREFIX}/lib/libpng15.so.15
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -19,5 +19,8 @@ lib/libpng/libpng15.cmake
|
|||
lib/libpng15.a
|
||||
lib/libpng15.so
|
||||
lib/libpng15.so.15
|
||||
man/man3/libpng.3.gz
|
||||
man/man3/libpngpf.3.gz
|
||||
man/man5/png.5.gz
|
||||
@dirrm lib/libpng
|
||||
@dirrm include/libpng15
|
||||
|
|
Loading…
Reference in a new issue