2003-05-20 23:03:37 +00:00
|
|
|
# New ports collection makefile for: Varkon
|
|
|
|
# Date created: 19 April 2003
|
2008-04-25 14:13:50 +00:00
|
|
|
# Whom: Pedro F. Giffuni
|
2003-05-20 23:03:37 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= varkon
|
2009-05-12 11:57:11 +00:00
|
|
|
PORTVERSION= 1.19D
|
2010-02-05 11:46:55 +00:00
|
|
|
PORTREVISION= 2
|
2003-05-20 23:03:37 +00:00
|
|
|
CATEGORIES= cad
|
2009-08-22 00:15:15 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Varkon_${PORTVERSION}
|
2008-04-25 14:13:50 +00:00
|
|
|
DISTNAME= Varkon_sources_${PORTVERSION}
|
2003-07-07 23:35:33 +00:00
|
|
|
DIST_SUBDIR= varkon
|
2003-05-20 23:03:37 +00:00
|
|
|
|
2003-07-07 23:35:33 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-05-20 23:03:37 +00:00
|
|
|
COMMENT= A free CAD system and applications development tool
|
|
|
|
|
2008-04-25 14:13:50 +00:00
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
|
2003-07-07 23:35:33 +00:00
|
|
|
|
2003-12-10 13:38:42 +00:00
|
|
|
USE_GL= yes
|
2003-05-20 23:03:37 +00:00
|
|
|
USE_GMAKE= yes
|
2008-04-25 14:13:50 +00:00
|
|
|
USE_XORG= xpm
|
|
|
|
ALL_TARGET=
|
|
|
|
VARKON_ROOT= ${WRKDIR}/Varkon_${PORTVERSION}
|
2003-05-20 23:03:37 +00:00
|
|
|
WRKSRC= ${VARKON_ROOT}/sources
|
2008-04-25 14:13:50 +00:00
|
|
|
USE_DOS2UNIX= Makefile
|
2009-11-22 19:49:43 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2003-05-20 23:03:37 +00:00
|
|
|
|
|
|
|
VARKON_PREFIX= ${PREFIX}/share/varkon
|
2008-04-25 14:13:50 +00:00
|
|
|
WEB_BROWSER?= firefox
|
2007-07-03 09:32:56 +00:00
|
|
|
|
2008-04-25 14:13:50 +00:00
|
|
|
do-configure:
|
2003-05-20 23:03:37 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+%%VARKON_PREFIX%%+${VARKON_PREFIX}+ ; s+%%DOCSDIR%%+${DOCSDIR}+g ' \
|
|
|
|
${VARKON_ROOT}/com/english/varkon
|
2006-11-30 16:07:11 +00:00
|
|
|
@${FIND} ${WRKSRC} -name 'Makefile.FreeBSD' -print0 | ${XARGS} -0 \
|
2008-04-25 14:13:50 +00:00
|
|
|
${REINPLACE_CMD} -e 's+/usr/local+${LOCALBASE}+g'
|
|
|
|
@${FIND} ${WRKSRC} -name 'Makefile*' | ${XARGS} ${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g'
|
2003-05-20 23:03:37 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${VARKON_PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${VARKON_ROOT}/bin/* \
|
|
|
|
${VARKON_PREFIX}/bin
|
|
|
|
@${CP} -R ${VARKON_ROOT}/erm ${VARKON_PREFIX}
|
|
|
|
@${CP} -R ${VARKON_ROOT}/lib ${VARKON_PREFIX}
|
|
|
|
@${MKDIR} ${VARKON_PREFIX}/cnf
|
|
|
|
@${CP} -R ${VARKON_ROOT}/cnf/fnt ${VARKON_PREFIX}/cnf
|
|
|
|
@${CP} -R ${VARKON_ROOT}/cnf/icons ${VARKON_PREFIX}/cnf
|
2003-07-07 23:35:33 +00:00
|
|
|
@${CP} -R ${VARKON_ROOT}/cnf/plt ${VARKON_PREFIX}/cnf
|
2003-05-20 23:03:37 +00:00
|
|
|
@${CP} -R ${VARKON_ROOT}/cnf/tol ${VARKON_PREFIX}/cnf
|
|
|
|
@${MKDIR} ${VARKON_PREFIX}/cnf/ini
|
|
|
|
@${INSTALL} ${VARKON_ROOT}/cnf/ini/english/linux \
|
|
|
|
${VARKON_PREFIX}/cnf/ini/freebsd
|
2008-04-25 14:13:50 +00:00
|
|
|
@${CP} -R ${VARKON_ROOT}/mdf ${VARKON_PREFIX}/mdf
|
2003-07-07 23:35:33 +00:00
|
|
|
@${INSTALL_SCRIPT} ${VARKON_ROOT}/com/english/varkon \
|
|
|
|
${PREFIX}/bin
|
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
@${MKDIR} ${DOCSDIR} #Varkon Manual
|
2008-04-25 14:13:50 +00:00
|
|
|
@${CP} -R ${VARKON_ROOT}/man/* ${DOCSDIR}
|
2003-07-07 23:35:33 +00:00
|
|
|
.endif
|
2003-05-20 23:03:37 +00:00
|
|
|
|
2008-04-25 14:13:50 +00:00
|
|
|
.include <bsd.port.mk>
|