freebsd-ports/cad/pcb/Makefile
Hiroki Sato f0cb0fe725 Fix dependency (m4>=1.4.11). The previous version of m4 (1.4.9)
has a bug in negative number handling and cad/pcb can fail in the
configuring stage due to it.
2008-06-18 04:53:55 +00:00

63 lines
1.4 KiB
Makefile

# New ports collection makefile for: PCB
# Date created: 19 October 1994
# Whom: mr
#
# $FreeBSD$
#
PORTNAME= pcb
PORTVERSION= 20080202
PORTREVISION= 3
CATEGORIES= cad
MASTER_SITES= SF
MAINTAINER= hrs@FreeBSD.org
COMMENT= X11 interactive printed circuit board layout system
LIB_DEPENDS= gd.4:${PORTSDIR}/graphics/gd
RUN_DEPENDS= m4>=1.4.11:${PORTSDIR}/devel/m4
BUILD_DEPENDS= ${RUN_DEPENDS}
GNU_CONFIGURE= yes
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
USE_GMAKE= yes
USE_TK_RUN= 83
INSTALLS_ICONS= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
INSTALL_DATA="/usr/bin/install ${COPY} ${_SHROWNGRP} -m ${SHAREMODE}"
CONFIGURE_ARGS= --docdir=${DOCSDIR}
PORTDOCS= pcb.html pcb.ps refcard.ps pcb.pdf refcard.pdf pad.eps \
puller.eps thermal.eps pad.gif puller.gif thermal.gif pad.pdf \
puller.pdf thermal.pdf pad.png puller.png thermal.png
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --without-gui
CONFIGURE_ENV+= WISH=${TRUE}
.elif defined(WITH_MOTIF_GUI)
USE_MOTIF= yes
USE_TK_RUN= yes
CONFIGURE_ARGS+= --with-gui=lesstif
CONFIGURE_ENV+= WISH=${WISH}
.else
USE_GNOME= gtk20 desktopfileutils
USE_TK_RUN= yes
CONFIGURE_ARGS+= --with-gui=gtk
CONFIGURE_ENV+= WISH=${WISH}
.endif
.if !defined(NOPORTDOCS)
INFO= pcb
MAN1= pcb.1
.else
CONFIGURE_ARGS+= --disable-doc
.endif
.include <bsd.port.mk>