aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-27 22:54:23 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-27 22:54:23 +0800
commite4cb314d11008e5c08b379b7d5281add42de9c63 (patch)
tree05572dcf7ef2bad9a88715568dff4eda293104b6 /graphics
parentbf1de99299a8574e08999b756a2e2d2efc6ca9ce (diff)
downloadfreebsd-ports-gnome-e4cb314d11008e5c08b379b7d5281add42de9c63.tar.gz
freebsd-ports-gnome-e4cb314d11008e5c08b379b7d5281add42de9c63.tar.zst
freebsd-ports-gnome-e4cb314d11008e5c08b379b7d5281add42de9c63.zip
Support staging
Diffstat (limited to 'graphics')
-rw-r--r--graphics/xnview/Makefile29
-rw-r--r--graphics/xnview/pkg-plist2
2 files changed, 14 insertions, 17 deletions
diff --git a/graphics/xnview/Makefile b/graphics/xnview/Makefile
index 3aaa0d81d39f..b3c69298e7a6 100644
--- a/graphics/xnview/Makefile
+++ b/graphics/xnview/Makefile
@@ -16,28 +16,23 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/XnView-${PORTVERSION}-x86-unknown-FreeBSD5.x-static
INSTALL_SLIB= yes
-MAN1= xnview.1 nview.1
-MLINKS= nview.1 nv.1 \
- nview.1 nconvert.1
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS
LIB_DEPENDS+= c.5:${PORTSDIR}/misc/compat5x
DISTFILES+= NConvert-x86-unknown-FreeBSD6.x.tgz
WRKSRC_NC= ${WRKDIR}/NConvert
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/xnview ${PREFIX}/bin/xnview
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/nview ${PREFIX}/bin/nv
- ${INSTALL_PROGRAM} ${WRKSRC_NC}/nconvert ${PREFIX}/bin/nconvert
- ${INSTALL_DATA} ${WRKSRC}/app-defaults/XnView.ad ${PREFIX}/lib/X11/app-defaults/XnView
- cd ${WRKSRC}/man && ${INSTALL_MAN} xnview.1 nview.1 ${PREFIX}/man/man1
-
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/xnview ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/nview ${STAGEDIR}${PREFIX}/bin/nv
+ ${INSTALL_PROGRAM} ${WRKSRC_NC}/nconvert ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/app-defaults/XnView.ad \
+ ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/XnView
+ cd ${WRKSRC}/man && ${INSTALL_MAN} xnview.1 nview.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC_NC} && \
- ${INSTALL_DATA} Formats.txt ReadMe.txt Usage.txt WhatsNew.txt ${DOCSDIR}
-.endif
+ ${INSTALL_DATA} Formats.txt ReadMe.txt Usage.txt WhatsNew.txt \
+ ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/xnview/pkg-plist b/graphics/xnview/pkg-plist
index 4023cd146830..e76878891562 100644
--- a/graphics/xnview/pkg-plist
+++ b/graphics/xnview/pkg-plist
@@ -2,6 +2,8 @@ bin/nconvert
bin/nv
bin/xnview
lib/X11/app-defaults/XnView
+man/man1/nview.1.gz
+man/man1/xnview.1.gz
%%PORTDOCS%%%%DOCSDIR%%/Formats.txt
%%PORTDOCS%%%%DOCSDIR%%/ReadMe.txt
%%PORTDOCS%%%%DOCSDIR%%/Usage.txt