freebsd-ports/cad/gerbv/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

65 lines
1.9 KiB
Makefile

# ex:ts=8
# Ports collection makefile for: gerbv
# Date created: Jul 16, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gerbv
PORTVERSION= 2.0.1
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= A Free Gerber Viewer
USE_GNOME= desktopfileutils gnometarget gtk20
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_ICONS= yes
MAN1= gerbv.1
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
post-patch:
@${FIND} ${WRKSRC} -name "configure" | ${XARGS} ${REINPLACE_CMD} -e \
's|LIBPNG_CONFIG --cflags|PKG_CONFIG --cflags libpng12|g ; \
s|LIBPNG_CONFIG --ldflags|PKG_CONFIG --libs libpng12|g'
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|desktop||g' ${WRKSRC}/Makefile.in
post-install:
@${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/desktop/gerbv.desktop \
${PREFIX}/share/applications
@${MKDIR} ${PREFIX}/share/icons/hicolor/scalable/apps
${INSTALL_DATA} ${WRKSRC}/desktop/gerbv.svg \
${PREFIX}/share/icons/hicolor/scalable/apps
.for i in 16 22 24 32 48
@${MKDIR} ${PREFIX}/share/icons/hicolor/${i}x${i}/apps
${INSTALL_DATA} ${WRKSRC}/desktop/gerbv-${i}.png \
${PREFIX}/share/icons/hicolor/${i}x${i}/apps/gerbv.png
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.fig ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/PNG-print
${INSTALL_DATA} ${WRKSRC}/doc/PNG-print/*.jpg ${DOCSDIR}/PNG-print
${INSTALL_DATA} ${WRKSRC}/doc/PNG-print/*.txt ${DOCSDIR}/PNG-print
@${MKDIR} ${DOCSDIR}/eagle
${INSTALL_DATA} ${WRKSRC}/doc/eagle/*.pl ${DOCSDIR}/eagle
${INSTALL_DATA} ${WRKSRC}/doc/eagle/*.txt ${DOCSDIR}/eagle
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/example && ${FIND} . ! -name "*Makefile*" | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
-@update-desktop-database
.include <bsd.port.mk>