2003-05-20 19:03:37 -04:00
|
|
|
# New ports collection makefile for: Varkon
|
|
|
|
# Date created: 19 April 2003
|
2008-04-25 10:13:50 -04:00
|
|
|
# Whom: Pedro F. Giffuni
|
2003-05-20 19:03:37 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= varkon
|
2008-04-25 10:13:50 -04:00
|
|
|
PORTVERSION= 1.19C
|
2003-05-20 19:03:37 -04:00
|
|
|
CATEGORIES= cad
|
2008-04-25 10:13:50 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
DISTNAME= Varkon_sources_${PORTVERSION}
|
2003-07-07 19:35:33 -04:00
|
|
|
DIST_SUBDIR= varkon
|
2003-05-20 19:03:37 -04:00
|
|
|
|
2003-07-07 19:35:33 -04:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-05-20 19:03:37 -04:00
|
|
|
COMMENT= A free CAD system and applications development tool
|
|
|
|
|
2008-04-25 10:13:50 -04:00
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
|
2003-07-07 19:35:33 -04:00
|
|
|
|
2003-12-10 08:38:42 -05:00
|
|
|
USE_GL= yes
|
2003-05-20 19:03:37 -04:00
|
|
|
USE_GMAKE= yes
|
2008-04-25 10:13:50 -04:00
|
|
|
USE_XORG= xpm
|
|
|
|
ALL_TARGET=
|
|
|
|
VARKON_ROOT= ${WRKDIR}/Varkon_${PORTVERSION}
|
2003-05-20 19:03:37 -04:00
|
|
|
WRKSRC= ${VARKON_ROOT}/sources
|
2008-04-25 10:13:50 -04:00
|
|
|
USE_DOS2UNIX= Makefile
|
2003-05-20 19:03:37 -04:00
|
|
|
|
|
|
|
VARKON_PREFIX= ${PREFIX}/share/varkon
|
2008-04-25 10:13:50 -04:00
|
|
|
WEB_BROWSER?= firefox
|
2007-07-03 05:32:56 -04:00
|
|
|
|
2008-04-25 10:13:50 -04:00
|
|
|
do-configure:
|
2003-05-20 19:03:37 -04:00
|
|
|
@${REINPLACE_CMD} -e 's+%%VARKON_PREFIX%%+${VARKON_PREFIX}+ ; s+%%DOCSDIR%%+${DOCSDIR}+g ' \
|
|
|
|
${VARKON_ROOT}/com/english/varkon
|
2006-11-30 11:07:11 -05:00
|
|
|
@${FIND} ${WRKSRC} -name 'Makefile.FreeBSD' -print0 | ${XARGS} -0 \
|
2008-04-25 10:13:50 -04: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 19:03:37 -04: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 19:35:33 -04:00
|
|
|
@${CP} -R ${VARKON_ROOT}/cnf/plt ${VARKON_PREFIX}/cnf
|
2003-05-20 19:03:37 -04: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 10:13:50 -04:00
|
|
|
@${CP} -R ${VARKON_ROOT}/mdf ${VARKON_PREFIX}/mdf
|
2003-07-07 19:35:33 -04:00
|
|
|
@${INSTALL_SCRIPT} ${VARKON_ROOT}/com/english/varkon \
|
|
|
|
${PREFIX}/bin
|
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
@${MKDIR} ${DOCSDIR} #Varkon Manual
|
2008-04-25 10:13:50 -04:00
|
|
|
@${CP} -R ${VARKON_ROOT}/man/* ${DOCSDIR}
|
2003-07-07 19:35:33 -04:00
|
|
|
.endif
|
2003-05-20 19:03:37 -04:00
|
|
|
|
2008-04-25 10:13:50 -04:00
|
|
|
.include <bsd.port.mk>
|