e3801c06e3
PR: 86949 Submitted by: Nicola Vitale <nivit@email.it> Approved by: novel (mentor), Mattias Werner <mawe@informatik.uni-bremen.de> (author)
88 lines
2.3 KiB
Makefile
88 lines
2.3 KiB
Makefile
# 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>
|