aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-05-09 07:40:50 +0800
committerbapt <bapt@FreeBSD.org>2014-05-09 07:40:50 +0800
commit54d03d2e7f0289bffff4a78d3fef4afcfdbfc1a3 (patch)
tree95ae63af9f8614405a48db86f60ad9b18bc85d64 /cad
parent46d17693d712b453f3d59154f63bffcb035c2bc9 (diff)
downloadfreebsd-ports-gnome-54d03d2e7f0289bffff4a78d3fef4afcfdbfc1a3.tar.gz
freebsd-ports-gnome-54d03d2e7f0289bffff4a78d3fef4afcfdbfc1a3.tar.zst
freebsd-ports-gnome-54d03d2e7f0289bffff4a78d3fef4afcfdbfc1a3.zip
Support stage
Diffstat (limited to 'cad')
-rw-r--r--cad/gdsreader/Makefile14
-rw-r--r--cad/gdsreader/files/patch-Makefile12
2 files changed, 9 insertions, 17 deletions
diff --git a/cad/gdsreader/Makefile b/cad/gdsreader/Makefile
index 51be9172d630..16fbad1d5260 100644
--- a/cad/gdsreader/Makefile
+++ b/cad/gdsreader/Makefile
@@ -10,24 +10,16 @@ DISTNAME= GDSreader.${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= GDS2 stream file to Postscript and HP/GL converter
-MAN1= gdsreader.1 maptolayer.1
PORTDOCS= README README.povray ChangeLog
EXFILES= layers.config test.gds layers.config.7HP.5ML \
layers.config.5AM.4ML
PLIST_FILES= bin/gdsreader bin/maptolayer \
- ${EXFILES:S,^,${EXAMPLESDIR_REL}/,}
+ ${EXFILES:S,^,${EXAMPLESDIR_REL}/,} \
+ man/man1/gdsreader.1.gz man/man1/maptolayer.1.gz
PLIST_DIRS= ${EXAMPLESDIR_REL}
-NO_STAGE= yes
+INSTALL_TARGET= install install-data install-docs
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-post-install:
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-data
-.if ${PORT_OPTIONS:MDOCS}
- @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} install-docs
-.endif
-
.include <bsd.port.mk>
diff --git a/cad/gdsreader/files/patch-Makefile b/cad/gdsreader/files/patch-Makefile
index 7ae6e5cc6e78..458b595c30fb 100644
--- a/cad/gdsreader/files/patch-Makefile
+++ b/cad/gdsreader/files/patch-Makefile
@@ -28,16 +28,16 @@
- layers.config.5AM.4ML $(DOCDIR)
- mkdir -p $(BINDIR) && cp -f maptolayer gdsreader $(BINDIR)
- mkdir -p $(MANDIR) && cp -f maptolayer.1 gdsreader.1 $(MANDIR)
-+ mkdir -p $(BINDIR) && ${INSTALL_PROGRAM} maptolayer gdsreader $(BINDIR)
-+ mkdir -p $(MANDIR) && ${INSTALL_MAN} maptolayer.1 gdsreader.1 $(MANDIR)
++ mkdir -p $(DESTDIR)$(BINDIR) && ${INSTALL_PROGRAM} maptolayer gdsreader $(DESTDIR)$(BINDIR)
++ mkdir -p $(DESTDIR)$(MANDIR) && ${INSTALL_MAN} maptolayer.1 gdsreader.1 $(DESTDIR)$(MANDIR)
+
+install-docs:
-+ mkdir -p $(DOCDIR) && ${INSTALL_DATA} README README.povray \
-+ ChangeLog $(DOCDIR)
++ mkdir -p $(DESTDIR)$(DOCDIR) && ${INSTALL_DATA} README README.povray \
++ ChangeLog $(DESTDIR)$(DOCDIR)
+
+install-data:
-+ mkdir -p $(EXDIR) && ${INSTALL_DATA} layers.config test.gds \
-+ layers.config.7HP.5ML layers.config.5AM.4ML $(EXDIR)
++ mkdir -p $(DESTDIR)$(EXDIR) && ${INSTALL_DATA} layers.config test.gds \
++ layers.config.7HP.5ML layers.config.5AM.4ML $(DESTDIR)$(EXDIR)
maptolayer: maptolayer.c
$(CC) -o maptolayer maptolayer.c