1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/cad/pdnmesh/Makefile
Martin Matuska b2c4fbb77a Update PCRE to 8.32
Introduces the UTF-32 library pcre32
Bump PORTREVISION in dependent ports
2012-12-10 19:11:11 +00:00

85 lines
2.3 KiB
Makefile

# Created by: Sarod Yatawatta <sarod@cs.pdn.ac.lk>
# $FreeBSD$
PORTNAME= pdnmesh
PORTVERSION= 0.2.2
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Finite element program
LICENSE= GPLv2 # (or later)
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
pcre:${PORTSDIR}/devel/pcre \
cairo:${PORTSDIR}/graphics/cairo \
drm:${PORTSDIR}/graphics/libdrm \
png15:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2 \
expat:${PORTSDIR}/textproc/expat2 \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
gtkglext:${PORTSDIR}/x11-toolkits/gtkglext \
xcb:${PORTSDIR}/x11/libxcb
OPTIONS_DEFINE= ATLAS DOCS EXAMPLES
ATLAS_DESC= Enable ATLAS support
USE_FORTRAN= yes
USE_GL= glu
USE_GETTEXT= yes
USE_ICONV= yes
USE_GNOME= gdkpixbuf2 gtk20
USE_PKGCONFIG= build
USE_XORG= ice pixman sm x11 xau xcomposite xcursor xdamage xdmcp xext \
xfixes xmu xi xinerama xrandr xrender xt xxf86vm
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= pdnmesh.1
MAN5= pdnmesh_input.5
DESKTOP_ENTRIES="${PORTNAME}" "${COMMENT}" "" "${PORTNAME}" "" "true"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MATLAS}
LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
CONFIGURE_ARGS+=--with-blas=cblas --with-lapack=alapack
.else
LIB_DEPENDS+= blas:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack
CONFIGURE_ARGS+=--with-blas=blas --with-lapack=lapack
.endif
post-patch:
@${REINPLACE_CMD}-e \
'/^SUBDIRS/s|doc|| ; \
s|^pkgdata_DATA|#pkgdata_DATA|' ${WRKSRC}/Makefile.in
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} \
&& ${INSTALL_DATA} ChangeLog ${DOCSDIR} \
&& ${INSTALL_DATA} README ${DOCSDIR})
@${MKDIR} ${DOCSDIR}/tutorial
(cd ${WRKSRC}/doc/tutorial \
&& ${INSTALL_DATA} README ${DOCSDIR}/tutorial \
&& ${INSTALL_DATA} tutorial.* ${DOCSDIR}/tutorial)
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(${TAR} -C ${WRKSRC}/doc/examples --exclude "*Makefile*" -cf - . | \
${TAR} -C ${EXAMPLESDIR} --unlink -xf -)
@${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHREOWN}:${SHAREGRP}
@${FIND} ${EXAMPLESDIR} -type d | ${XARGS} ${CHMOD} a+rx
@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.endif
.include <bsd.port.mk>