1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Vanilla I. Shu 2014-06-11 14:53:17 +00:00
parent 0f027f151e
commit 400fbecd4e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357488
2 changed files with 9 additions and 10 deletions

View File

@ -14,18 +14,17 @@ COMMENT= Library that simplifies the task of writing CGI programs in C
USE_LDCONFIG= yes
NO_STAGE= yes
post-extract:
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.dist
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/cgihtml/html
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for file in CHANGES CREDITS
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/cgihtml
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${PREFIX}/share/doc/cgihtml/html
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR}/html
.endif
.include <bsd.port.mk>

View File

@ -35,14 +35,14 @@ lib${LIB}.so.${SHLIB_VER}: ${SOBJS}
all: depend lib${LIB}.a lib${LIB}.so.${SHLIB_VER}
install:
@mkdir -p ${PREFIX}/lib
@mkdir -p ${PREFIX}/include
${INSTALL} -c -m 644 lib${LIB}.a ${PREFIX}/lib
@mkdir -p $(DESTDIR)${PREFIX}/lib
@mkdir -p $(DESTDIR)${PREFIX}/include
${INSTALL} -c -m 644 lib${LIB}.a $(DESTDIR)${PREFIX}/lib
# ${RANLIB} -t ${PREFIX}/lib/lib${LIB}.a
${INSTALL} -c -m 644 lib${LIB}.so.${SHLIB_VER} ${PREFIX}/lib
@ln -s ${PREFIX}/lib/lib${LIB}.so.${SHLIB_VER} ${PREFIX}/lib/lib${LIB}.so
${INSTALL} -c -m 644 lib${LIB}.so.${SHLIB_VER} $(DESTDIR)${PREFIX}/lib
@ln -s lib${LIB}.so.${SHLIB_VER} $(DESTDIR)${PREFIX}/lib/lib${LIB}.so
.for file in ${HDRS}
${INSTALL} -c -m 644 ${file} ${PREFIX}/include
${INSTALL} -c -m 644 ${file} $(DESTDIR)${PREFIX}/include
.endfor
clean: