mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
cb037d3c98
- Bump PORTREVISION for shlib change Changes: https://cnswww.cns.cwru.edu/php/chet/readline/CHANGES https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00107.html https://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html Differential Revision: https://reviews.freebsd.org/D11172 PR: 219947 Exp-run by: antoine
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# Created by: Brad Huntting <huntting@glarp.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qcl
|
|
PORTVERSION= 0.6.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= science math
|
|
MASTER_SITES= http://tph.tuwien.ac.at/~oemer/tgz/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Quantum computer simulator
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
USES= bison gmake readline tar:tgz
|
|
|
|
PLIST_FILES= bin/qcl
|
|
PORTDATA= *
|
|
|
|
OPTIONS_DEFINE= PLOTUTILS
|
|
|
|
PLOTUTILS_DESC= Plotting support via plotutils
|
|
PLOTUTILS_LIB_DEPENDS= libplotter.so:graphics/plotutils
|
|
PLOTUTILS_CXXFLAGS= -I${LOCALBASE}/include -DQCL_PLOT
|
|
PLOTUTILS_LDFLAGS= -L${LOCALBASE}/lib -lplotter
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|/usr/local|${PREFIX}| ; \
|
|
s|lib/qcl|share/qcl| ; \
|
|
s|-O2 -g|| ; \
|
|
s|^PLOPT|#PLOPT| ; \
|
|
s|^PLLIB|#PLLIB| ; \
|
|
/^CXXFLAGS/s| =| +=| ; \
|
|
/^LDFLAGS/s| =| +=|' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|-g -O2|| ; \
|
|
/^CXXFLAGS/s| =| +=| ; \
|
|
/^LDFLAGS/s| =| +=|' ${WRKSRC}/qc/Makefile
|
|
|
|
do-install:
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} qcl ${STAGEDIR}${PREFIX}/bin)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
(cd ${WRKSRC}/lib && ${INSTALL_DATA} *.qcl ${STAGEDIR}${DATADIR})
|
|
|
|
.include <bsd.port.mk>
|