1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Stage support

- Add missing OPTIONS_DEFINE
- New LIB_DEPENDS syntax
This commit is contained in:
Antoine Brodin 2014-01-05 12:40:18 +00:00
parent 93f308c035
commit 12a22c1140
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338759

View File

@ -13,27 +13,28 @@ EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple X11 library
LIB_DEPENDS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
LIB_DEPENDS= libXaw3d.so:${PORTSDIR}/x11-toolkits/Xaw3d
USE_XORG= x11 xaw xext xmu xt
ALL_TARGET= src freq
MAKE_JOBS_UNSAFE= yes
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
${INSTALL_DATA} ${WRKSRC}/src/libsx.a ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/freq/libfreq.a ${PREFIX}/lib
${MKDIR} ${PREFIX}/include/X11/libsx
${INSTALL_DATA} ${WRKSRC}/src/libsx.h ${PREFIX}/include/X11/libsx
${INSTALL_DATA} ${WRKSRC}/freq/freq.h ${PREFIX}/include/X11/libsx
${INSTALL_DATA} ${WRKSRC}/src/libsx.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/freq/libfreq.a ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${PREFIX}/include/X11/libsx
${INSTALL_DATA} ${WRKSRC}/src/libsx.h ${STAGEDIR}${PREFIX}/include/X11/libsx
${INSTALL_DATA} ${WRKSRC}/freq/freq.h ${STAGEDIR}${PREFIX}/include/X11/libsx
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${PREFIX}/share/doc/libsx
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/libsx
${GZIP_CMD} ${PREFIX}/share/doc/libsx/*.doc
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/libsx
${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${PREFIX}/share/doc/libsx
${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/doc/libsx/*.doc
.endif
.include <bsd.port.mk>