- Clarify LICENSE

- Add LICENSE_FILE
- Switch to USES=localbase
- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2015-12-25 14:43:02 +00:00
parent e584e8aecb
commit 8e0d3922b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404427

View file

@ -10,11 +10,10 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Gerber file viewer
LICENSE= GPLv2
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= DOCS EXAMPLES
USES= autoreconf desktop-file-utils gmake libtool pathfix pkgconfig
USES= autoreconf desktop-file-utils gmake libtool localbase pathfix pkgconfig
USE_GNOME= gtk20
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_aux_dir="."
@ -22,11 +21,10 @@ USE_LDCONFIG= yes
INSTALLS_ICONS= yes
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_SUB= VERSION="${PORTVERSION}"
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e \
's|^AM_NLS|#AM_NLS| ; \
@ -54,6 +52,8 @@ post-install:
(cd ${WRKSRC}/desktop && ${INSTALL_DATA} gerbv-${i}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/gerbv.png)
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.fig *.txt \
${STAGEDIR}${DOCSDIR})
@ -63,6 +63,8 @@ post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/eagle
(cd ${WRKSRC}/doc/eagle && ${INSTALL_DATA} *.pl *.txt \
${STAGEDIR}${DOCSDIR}/eagle)
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/example && ${FIND} . \
! \( -name "*Makefile*" -or -name ".cvsignore" \) \