1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Remove NO_INSTALL_MANPAGES, it's useless with custom do-install target

- Stage support
- Fix build on head amd64 (MAKE_ENV was overriden)
- Add missing OPTIONS_DEFINE

PR:		ports/185514
Submitted by:	KATO Tsuguru
This commit is contained in:
Antoine Brodin 2014-01-08 18:31:40 +00:00
parent 5547c47cf7
commit 92bd52ca14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339163

View File

@ -14,23 +14,24 @@ COMMENT= Graphic viewer for Leaf products
USES= imake
USE_XORG= x11 xext
USE_LDCONFIG= yes
NO_INSTALL_MANPAGES= yes
NO_STAGE= yes
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= DOCS
DOCSDIR= ${PREFIX}/share/doc/ja/lfview
.if ${ARCH} == "amd64"
.include <bsd.port.options.mk>
.if ${ARCH} != i386
CFLAGS+= -fPIC
MAKE_ENV= "SHLIBGLOBALSFLAGS=-fPIC"
MAKE_ENV+= SHLIBGLOBALSFLAGS=-fPIC
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lfview ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/plugins/liblfv_leaf.so.1 ${PREFIX}/lib
${LN} -s ${PREFIX}/lib/liblfv_leaf.so.1 ${PREFIX}/lib/liblfv_leaf.so
${INSTALL_PROGRAM} ${WRKSRC}/lfview ${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/plugins/liblfv_leaf.so.1 ${STAGEDIR}${PREFIX}/lib
${LN} -sf liblfv_leaf.so.1 ${STAGEDIR}${PREFIX}/lib/liblfv_leaf.so
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${PREFIX}/share/doc/ja/lfview
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ja/lfview
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>