. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. use PORTDOCS at Makefile (thus simplify pkg-plist); . use plain install instead of a .for loop; . trim Makefile headers.
This commit is contained in:
parent
0ed60a672e
commit
6c227ca468
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321310
@ -1,7 +1,4 @@
|
||||
# New ports collection makefile for: gperiodic
|
||||
# Date created: 16 July 1999
|
||||
# Whom: Andrey Zakhvatov
|
||||
#
|
||||
# Created by: Andrey Zakhvatov
|
||||
# $FreeBSD$
|
||||
# $MCom: ports/biology/gperiodic/Makefile,v 1.1 2006/09/29 23:42:13 ahze Exp $
|
||||
|
||||
@ -19,6 +16,10 @@ USES= gettext
|
||||
|
||||
LANGS= da fr gl it pl ru sv tr
|
||||
|
||||
PORTDOCS= AUTHORS ChangeLog README
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${CC} ${CFLAGS} `pkg-config --cflags --libs gtk+-2.0` \
|
||||
gperiodic.c -o gperiodic
|
||||
@ -26,6 +27,8 @@ do-build:
|
||||
cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/gperiodic ${PREFIX}/bin
|
||||
@${MKDIR} ${PREFIX}/share/applications
|
||||
@ -41,11 +44,9 @@ do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
|
||||
${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
|
||||
.endfor
|
||||
.if !defined(NOPORTDOCS)
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in AUTHORS ChangeLog README
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,8 +1,5 @@
|
||||
bin/gperiodic
|
||||
share/applications/gperiodic.desktop
|
||||
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
share/locale/da/LC_MESSAGES/gperiodic.mo
|
||||
share/locale/fr/LC_MESSAGES/gperiodic.mo
|
||||
share/locale/gl/LC_MESSAGES/gperiodic.mo
|
||||
@ -13,5 +10,4 @@ share/locale/sv/LC_MESSAGES/gperiodic.mo
|
||||
share/locale/tr/LC_MESSAGES/gperiodic.mo
|
||||
share/pixmaps/gperiodic.png
|
||||
share/pixmaps/gperiodic-crystal.png
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrmtry share/applications
|
||||
|
Loading…
Reference in New Issue
Block a user