blob: 51b12e79418919b1379c601c3b4f035b27d9e994 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# New ports collection makefile for: uDrawGraph
# Date created: 2005-10-05
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= uDrawGraph
PORTVERSION= 3.1.1
#PORTREVISION= 0
CATEGORIES= graphics math
MASTER_SITES= http://www.informatik.uni-bremen.de/uDrawGraph/download/
DISTNAME= ${PORTNAME}-${PORTVERSION}-${PKGNUM}-${OPSYS:L}-${ARCH}
MAINTAINER= nivit@email.it
COMMENT= A graph drawing/visualization system
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
SUB_FILES= ${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\..$//}
PKGNUM= 0
FIND_DIRS= \( -type d -not -empty \)
FIND_EXEC= \( -type f -perm -a+x \)
FIND_DATA= -type f \! \( -name "*.win32" -or -name "CHANGES.txt" -or -name "Changelog" -or -name "LICENSE.txt" \)
LICENSES= LICENSE.txt LIZENZ.txt
LINK_OPTS= -sf
RESTRICTED= "binary under GNU LGPL without accompanying source"
do-install:
# licenses required at startup
@cd ${WRKSRC}; \
${MKDIR} ${DATADIR}; \
${INSTALL_DATA} ${LICENSES} ${DATADIR}/
# binaries
@cd ${WRKSRC}/bin; \
${MKDIR} ${DATADIR}/bin; \
FILES=$$(${FIND} . ${FIND_EXEC}); \
for FILE in $${FILES}; do \
${INSTALL_PROGRAM} $${FILE} ${DATADIR}/bin/$${FILE}; \
done; \
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME};
## links to executables
@${LN} ${LINK_OPTS} ${DATADIR}/bin/uDrawGraph ${DATADIR}/bin/daVinci
@${LN} ${LINK_OPTS} ${DATADIR}/bin/gml2udg ${DATADIR}/bin/gml2daVinci
# data
@cd ${WRKSRC}; \
DIRS=$$(${FIND} lib icons ${FIND_DIRS}); \
for DIR in $${DIRS}; do \
${MKDIR} ${DATADIR}/$${DIR}; \
done; \
FILES=$$(${FIND} lib icons ${FIND_DATA}); \
for FILE in $${FILES}; do \
${INSTALL_DATA} $${FILE} ${DATADIR}/$${FILE}; \
done;
# examples
@cd ${WRKSRC}/samples; \
DIRS=$$(${FIND} . ${FIND_DIRS}); \
for DIR in $${DIRS}; do \
${MKDIR} ${EXAMPLESDIR}/$${DIR}; \
done; \
FILES=$$(${FIND} . ${FIND_DATA}); \
for FILE in $${FILES}; do \
${INSTALL_DATA} $${FILE} ${EXAMPLESDIR}/$${FILE}; \
done;
# documentation
.if !defined (NOPORTDOCS)
@cd ${WRKSRC}/docs; \
${MKDIR} ${DOCSDIR}; \
FILES=$$(${FIND} . ${FIND_DATA}); \
for FILE in $${FILES}; do \
${INSTALL_DATA} $${FILE} ${DOCSDIR}/$${FILE}; \
done;
# link to docs
@${LN} ${LINK_OPTS} ${DOCSDIR} ${DATADIR}/docs
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
.endif
.include <bsd.port.post.mk>
|