summaryrefslogtreecommitdiff
path: root/math/xgap/Makefile
blob: 37dc2d34e42758a7e97bc5b2ec4293c985f31a18 (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.32
CATEGORIES=	math

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Graphical user interface for GAP
WWW=		https://gap-packages.github.io/xgap/

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_GITHUB=	yes
GH_ACCOUNT=	gap-packages
USE_XORG=	ice sm x11 xext xmu xt

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-gaproot=${LOCALBASE}/lib/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>