blob: 2a2b3f5feff5d41a8672e39f3765a9be51bdc138 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= xgap
DISTVERSIONPREFIX= v
DISTVERSION= 4.31
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Graphical user interface for GAP
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_armv6= cannot find sources (xgap.c) in ../../src.x11
BROKEN_armv7= cannot find sources (xgap.c) in ../../src.x11
BUILD_DEPENDS= gap:math/gap
LIB_DEPENDS= libXaw.so:x11-toolkits/libXaw
RUN_DEPENDS= gap:math/gap
USES= autoreconf gmake xorg
USE_XORG= ice sm x11 xext xmu xt
USE_GITHUB= yes
GH_ACCOUNT= gap-packages
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-gaproot=${LOCALBASE}/share/gap
ALL_TARGET= default
PLIST_FILES= bin/xgap \
bin/xgap-bin
pre-build:
@cd ${WRKSRC} && ./autogen.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/*/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${REINPLACE_CMD} -i '' -e " \
s,^XGAP=.*,XGAP=${PREFIX}/bin/${PORTNAME}-bin,; \
s,^GAP=.*,GAP=${PREFIX}/bin/gap,; \
" ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|