blob: 6574184a147db8077a1122d87018303291025baf (
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
|
# Created by: Pedro F. Giffuni
# $FreeBSD$
PORTNAME= varkon
PORTVERSION= 1.19E
PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Varkon_${PORTVERSION}
DISTNAME= Varkon_sources_${PORTVERSION}
DIST_SUBDIR= varkon
MAINTAINER= ports@FreeBSD.org
COMMENT= Free CAD system and applications development tool
LICENSE= GPLv2 LGPL20
LICENSE_COMB= dual
LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
WRKSRC= ${WRKDIR}/Varkon_${PORTVERSION}
BUILD_WRKSRC= ${WRKSRC}/sources
USE_XORG= xpm
USE_GL= glu
USES= gmake
MAKE_ENV= PLATFORM=FreeBSD
ALL_TARGET= # none
MAKE_JOBS_UNSAFE= yes
VARKON_PREFIX= ${PREFIX}/lib/${PORTNAME}
OPTIONS_DEFINE= DOCS
post-extract:
@${FIND} ${WRKSRC} -name "*.o" -delete
do-configure:
@${REINPLACE_CMD} -e \
's|%%VARKON_PREFIX%%|${VARKON_PREFIX}|g ; \
s|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/com/english/varkon
@${REINPLACE_CMD} -e \
's|^PLATFORM|#PLATFORM|' ${BUILD_WRKSRC}/Makefile
@${FIND} ${BUILD_WRKSRC} -name "Makefile.FreeBSD" -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e \
's|/usr/local|${LOCALBASE}|g ; \
s|/usr/X11R6|${LOCALBASE}|g ; \
s|-O[[:space:]]|| ; \
s|cc $$(LIBS)|$$(CC) $$(LIBS)|'
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/com/english/varkon ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${VARKON_PREFIX}
.for i in erm lib mdf
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${VARKON_PREFIX})
.endfor
@${MKDIR} ${STAGEDIR}${VARKON_PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${VARKON_PREFIX}/bin
@${MKDIR} ${STAGEDIR}${VARKON_PREFIX}/cnf
.for i in fnt icons plt tol
@(cd ${WRKSRC}/cnf && ${COPYTREE_SHARE} ${i} ${STAGEDIR}${VARKON_PREFIX}/cnf)
.endfor
@${MKDIR} ${STAGEDIR}${VARKON_PREFIX}/cnf/ini
${INSTALL_DATA} ${WRKSRC}/cnf/ini/english/linux \
${STAGEDIR}${VARKON_PREFIX}/cnf/ini/freebsd
@${MKDIR} ${STAGEDIR}${DOCSDIR} #Varkon Manual
@(cd ${WRKSRC}/man && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|