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

Support stage

This commit is contained in:
Baptiste Daroussin 2014-05-08 23:40:50 +00:00
parent 58402a061c
commit 1d930db62a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353364
2 changed files with 9 additions and 17 deletions

View File

@ -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>

View File

@ -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