openbsd-ports/cad/pcb/Makefile
ajacoutot a1b7c39eb5 gtk-update-icon-cache:
Don't redirect errors to /dev/null and don't return true(1)
unconditionally. Instead, don't check for the existence of index.theme.
This will allow us to catch errors that may be happening because of a
missing dependency in the chain.

Some hidden issues may appear, in which case please contact me.

discussed with and ok blind jasper@
2012-06-15 08:32:14 +00:00

68 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.25 2012/06/15 08:32:14 ajacoutot Exp $
COMMENT= printed circuit board layout tool
DISTNAME= pcb-20110918
CATEGORIES= cad
REVISION= 1
HOMEPAGE= http://pcb.gpleda.org/
MAINTAINER= Andreas Bihlmaier <andreas.bihlmaier@gmx.de>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += GL GLU ICE SM X11 Xcomposite Xcursor Xdamage Xext Xfixes
WANTLIB += Xi Xinerama Xmu Xrandr Xrender Xt atk-1.0 c cairo dbus-1
WANTLIB += expat fontconfig freetype gd gdk-x11-2.0 gdk_pixbuf-2.0
WANTLIB += gdkglext-x11-1.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 gtk-x11-2.0 gtkglext-x11-1.0 jpeg m pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pangox-1.0 pixman-1 png
WANTLIB += pthread pthread-stubs xcb xcb-render xcb-shm z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pcb/}
RUN_DEPENDS= devel/m4 \
devel/desktop-file-utils \
graphics/ImageMagick \
misc/shared-mime-info \
x11/gtk+2,-guic \
${MODTK_RUN_DEPENDS}
BUILD_DEPENDS= ${RUN_DEPENDS} \
shells/bash
LIB_DEPENDS= graphics/gd \
x11/dbus \
x11/gtkglext
MODULES= devel/gettext \
textproc/intltool \
x11/tk
USE_GMAKE= Yes
USE_GROFF = Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-doc \
--with-gui=gtk \
--disable-update-desktop-database \
--disable-update-mime-database
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
pre-configure:
${SUBST_CMD} ${WRKSRC}/doc/pcb.1 \
${WRKSRC}/icon-theme-installer
post-install:
rm -rf ${PREFIX}/share/${DISTNAME}
${INSTALL_MAN} ${WRKSRC}/doc/pcb.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/doc/pcb.info* ${PREFIX}/info
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pcb
${INSTALL_DATA} ${WRKSRC}/doc/pcb.html ${PREFIX}/share/doc/pcb
${INSTALL_DATA} ${WRKSRC}/doc/*.png ${PREFIX}/share/doc/pcb
${INSTALL_DATA} ${WRKSRC}/doc/refcard.pdf ${PREFIX}/share/doc/pcb
.include <bsd.port.mk>