diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2014-01-08 18:31:40 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2014-01-08 18:31:40 +0000 |
commit | 92bd52ca144745af5343b280c1deff7cdab17077 (patch) | |
tree | 7da9cccec8b83216feee2e305973193feea7f4f4 /graphics | |
parent | 5547c47cf78e79d80016cfceae9b52853142b4aa (diff) | |
download | ports-92bd52ca144745af5343b280c1deff7cdab17077.tar.gz ports-92bd52ca144745af5343b280c1deff7cdab17077.zip |
Notes
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/lfview/Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/graphics/lfview/Makefile b/graphics/lfview/Makefile index c47554361a3d..8598de5c17cd 100644 --- a/graphics/lfview/Makefile +++ b/graphics/lfview/Makefile @@ -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> |