diff options
author | bapt <bapt@FreeBSD.org> | 2013-10-19 07:18:19 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-10-19 07:18:19 +0800 |
commit | cf0ef1ad6da1598c0245701cd66aa6fa02a2fc81 (patch) | |
tree | afc9dacf04193f56531ab44b4c98a2ccdf6531a8 /misc | |
parent | 600504f87c52ea36ebb077d33b2cec9a7a6ced4b (diff) | |
download | freebsd-ports-gnome-cf0ef1ad6da1598c0245701cd66aa6fa02a2fc81.tar.gz freebsd-ports-gnome-cf0ef1ad6da1598c0245701cd66aa6fa02a2fc81.tar.zst freebsd-ports-gnome-cf0ef1ad6da1598c0245701cd66aa6fa02a2fc81.zip |
Enable stage
USES=gmake
Diffstat (limited to 'misc')
-rw-r--r-- | misc/xsw/Makefile | 41 | ||||
-rw-r--r-- | misc/xsw/pkg-plist | 5 |
2 files changed, 13 insertions, 33 deletions
diff --git a/misc/xsw/Makefile b/misc/xsw/Makefile index ec950dba9be9..4a37a3f36d3c 100644 --- a/misc/xsw/Makefile +++ b/misc/xsw/Makefile @@ -8,7 +8,9 @@ CATEGORIES= misc MASTER_SITES= GOOGLE_CODE MAINTAINER= bapt@FreeBSD.org -COMMENT= A tool for creating presentations +COMMENT= Tool for creating presentations + +OPTIONS_DEFINE= DOCS RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick @@ -19,18 +21,6 @@ GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -.if !defined(NO_INSTALL_MANPAGES) -MAN1= xsw.1 \ - xsw2pdf.1 \ - xswconv.1 - -MANCOMPRESSED= no -.endif - -.if defined(.PARSEDIR) -USE_GMAKE= yes -.endif - DOCS= AUTHORS \ COPYING \ NEWS \ @@ -40,25 +30,12 @@ DOCS= AUTHORS \ TODO \ doc/xsw.vim -NO_STAGE= yes -.include <bsd.port.options.mk> - -do-install: - (cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \ - ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install) - (cd ${WRKSRC}/data && ${SETENV} ${MAKE_ENV} \ - ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install) -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} -.for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR} -.endfor -.endif +post-patch: + @${REINPLACE_CMD} -e "s,./install-fonts ,./install-fonts \$$(DESTDIR)," \ + ${WRKSRC}/data/Makefile.in -.if !defined(NO_INSTALL_MANPAGES) -.for manpage in ${MAN1} - ${INSTALL_MAN} ${WRKSRC}/man/man1/${manpage} ${MAN1PREFIX}/man/man1 -.endfor -.endif +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/misc/xsw/pkg-plist b/misc/xsw/pkg-plist index 5ff5116451e7..6c8e6f5c1ff6 100644 --- a/misc/xsw/pkg-plist +++ b/misc/xsw/pkg-plist @@ -3,6 +3,9 @@ bin/xsw2jpeg bin/xsw2pdf bin/xsw2png bin/xswconv +man/man1/xsw.1.gz +man/man1/xsw2pdf.1.gz +man/man1/xswconv.1.gz %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/COPYING %%PORTDOCS%%%%DOCSDIR%%/NEWS @@ -25,6 +28,6 @@ bin/xswconv %%DATADIR%%/tutorial/tutorial.xsw %%DATADIR%%/tutorial/tutorial.xsw.in %%DATADIR%%/tutorial/tux.png +%%PORTDOCS%%@dirrmtry %%DOCSDIR%% @dirrm %%DATADIR%%/tutorial @dirrm %%DATADIR%% -%%PORTDOCS%%@dirrm %%DOCSDIR%% |