2003-05-20 23:03:37 +00:00
|
|
|
# New ports collection makefile for: Varkon
|
|
|
|
# Date created: 19 April 2003
|
|
|
|
# Whom: Pedro Giffuni <giffunip@asme.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= varkon
|
|
|
|
PORTVERSION= 1.17D
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
2003-05-20 23:03:37 +00:00
|
|
|
CATEGORIES= cad
|
2003-07-07 23:35:33 +00:00
|
|
|
MASTER_SITES= http://www.tech.oru.se/cad/varkon/pub/linux/:sources \
|
|
|
|
http://www.tech.oru.se/cad/varkon/:docs
|
|
|
|
DISTFILES= ${PORTNAME}_sources_${PORTVERSION}${EXTRACT_SUFX}:sources \
|
|
|
|
v_man.zip:docs m_man.zip:docs
|
|
|
|
DIST_SUBDIR= varkon
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}_sources_${PORTVERSION}${EXTRACT_SUFX}
|
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
|
|
|
|
|
2003-07-07 23:35:33 +00:00
|
|
|
.ifndef NOPORTDOCS
|
2004-05-02 23:58:07 +00:00
|
|
|
BUILD_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
|
2003-07-07 23:35:33 +00:00
|
|
|
.endif
|
|
|
|
|
2003-12-10 13:38:42 +00:00
|
|
|
USE_GL= yes
|
2003-05-20 23:03:37 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
VARKON_ROOT= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
|
|
|
|
WRKSRC= ${VARKON_ROOT}/sources
|
2003-07-07 23:35:33 +00:00
|
|
|
MAKE_ENV+= VARKON_ROOT=${VARKON_ROOT}
|
2003-05-20 23:03:37 +00:00
|
|
|
|
|
|
|
VARKON_PREFIX= ${PREFIX}/share/varkon
|
2003-07-07 23:35:33 +00:00
|
|
|
WEB_BROWSER?= mozilla
|
2003-05-20 23:03:37 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's+%%MAKE%%+${GMAKE}+g;' ${WRKSRC}/make_varkon
|
2003-07-07 23:35:33 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+netscape+${WEB_BROWSER}+ ' \
|
|
|
|
${VARKON_ROOT}/cnf/ini/english/linux
|
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 \
|
|
|
|
${REINPLACE_CMD} -e 's+/usr/X11R6+${X11BASE}+g'
|
2003-05-20 23:03:37 +00:00
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC};${SETENV} ${MAKE_ENV} ${SH} make_varkon )
|
|
|
|
|
|
|
|
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
|
2003-07-07 23:35:33 +00:00
|
|
|
@${CP} -R ${VARKON_ROOT}/mdf/english ${VARKON_PREFIX}/mdf
|
|
|
|
@${INSTALL_SCRIPT} ${VARKON_ROOT}/com/english/varkon \
|
|
|
|
${PREFIX}/bin
|
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${CP} -R ${VARKON_ROOT}/app ${EXAMPLESDIR}
|
|
|
|
@${CP} -R ${VARKON_ROOT}/pid ${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${DOCSDIR} #Varkon Manual
|
|
|
|
@unzip ${DISTDIR}/${DIST_SUBDIR}/v_man \
|
|
|
|
-d ${DOCSDIR}
|
|
|
|
@unzip -uo ${DISTDIR}/${DIST_SUBDIR}/m_man \
|
|
|
|
-d ${DOCSDIR}
|
|
|
|
.endif
|
2003-05-20 23:03:37 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|