aboutsummaryrefslogtreecommitdiffstats
path: root/science/xloops-ginac/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'science/xloops-ginac/Makefile')
-rw-r--r--science/xloops-ginac/Makefile28
1 files changed, 20 insertions, 8 deletions
diff --git a/science/xloops-ginac/Makefile b/science/xloops-ginac/Makefile
index 25bfb286231a..456bd64dc667 100644
--- a/science/xloops-ginac/Makefile
+++ b/science/xloops-ginac/Makefile
@@ -6,22 +6,34 @@
# $FreeBSD$
#
-PORTNAME= xloops
+PORTNAME= xloops-ginac
PORTVERSION= 0.1.3
+PORTREVISOIN= 1
CATEGORIES= science
MASTER_SITES= http://wwwthep.physik.uni-mainz.de/~xloops/
-PKGNAMESUFFIX= -ginac
-DISTNAME= ${PORTNAME}-ginac-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A program calculating Feynman diagrams
-LIB_DEPENDS= ginac:${PORTSDIR}/math/GiNaC
+LIB_DEPENDS= ginac-1.1.3:${PORTSDIR}/math/GiNaC
-USE_LIBTOOL= yes
USE_GMAKE= yes
+USE_LIBTOOL= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
+ AUTOHEADER="${TRUE}"
+
+CPPFLAGS= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib
+
+.include <bsd.port.pre.mk>
-post-install:
- @${RMDIR} ${DOCSDIR}
+.if ${OSVERSION} < 500035
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
+CPPFLAGS+= -I${LOCALBASE}/include/stlport ${PTHREAD_CFLAGS}
+LDFLAGS+= -lstlport_gcc ${PTHREAD_LIBS}
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>