blob: 592d9f5c490804bdf27293f3ca6012dc1a802a57 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: ump
# Date created: 2006-04-20
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= ump
PORTVERSION= 0.8.3.2
CATEGORIES= math
MASTER_SITES= http://home.swipnet.se/${PORTNAME}/downloads/ \
http://nivi.interfree.it/distfiles/${PORTNAME}/
DISTFILES= ${PORTNAME}-${PORTVERSION}-src${EXTRACT_SUFX}
MAINTAINER= nivit@email.it
COMMENT= A graphical, easy to use math program
CONFLICTS= ump-1.[0-9]*
LATEST_LINK= math-ump
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gtk20
USE_XLIB= yes
USE_X_PREFIX= yes
ALL_TARGET= ${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ENV+= CXX="${CXX}" CC="${CC}" DATADIR="${DATADIR}" \
X11BASE="${X11BASE}"
FIND_DIRS= -type d
FIND_DATA= -type f
.if !defined(NOPORTDOCS)
DOCSDIST= ${PORTNAME}-${PORTVERSION:C/\.[0-9]$//}-doc
DISTFILES+= ${DOCSDIST}${EXTRACT_SUFX}
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 503000
IGNORE= requires trunc(3) and round(3)
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/main.cpp
post-install:
${INSTALL_DATA} ${WRKSRC}/ump.conf ${PREFIX}/etc/ump.conf.dist
.if !exists(${PREFIX}/etc/ump.conf)
${INSTALL_DATA} ${WRKSRC}/ump.conf ${PREFIX}/etc
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKDIR}/${DOCSDIST} && ${FIND} . ${FIND_DIRS} \
-exec ${MKDIR} ${DOCSDIR}/{} \;
cd ${WRKDIR}/${DOCSDIST} && ${FIND} . ${FIND_DATA} \
-exec ${INSTALL_DATA} {} ${DOCSDIR} \;
.endif
.include <bsd.port.post.mk>
|