1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/science/gdis/Makefile
Mario Sergio Fujikawa Ferreira f0a1969d34 o Rollback PORTCOMMENT modifications while this feature's implementation
is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
2002-11-10 16:48:51 +00:00

50 lines
1.1 KiB
Makefile

# ex:ts=8
# Ports collection Makefile for: gdis
# Date created: Mar 3, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gdis
PORTVERSION= 0.77.1
CATEGORIES= science
MASTER_SITES= ftp://ftp.seul.org/pub/gdis/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
USE_MESA= yes
USE_GNOMENG= yes
USE_GNOME= gtk12
USE_REINPLACE= yes
USE_GMAKE= yes
ALL_TARGET= main
post-patch:
@${REINPLACE_CMD} -e 's|^CC|#CC|g ; \
s|^CFLAGS|#CFLAGS|g ; \
s|/usr/local/bin|${DATADIR}|g ; \
s|gtk-config|${GTK_CONFIG}|g ; \
s|-I/usr/local/include||g ; \
s|-lgtkgl|-lgtkgl ${PTHREAD_LIBS:S/"//g}|g ; \
s|-DGTK_GL|-DGTK_GL ${PTHREAD_CFLAGS}|g' ${WRKSRC}/Makefile
@${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
's|<sys/dir.h>|<dirent.h>|g ; \
s|struct direct|struct dirent|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdis ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gdis.elements ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in CHANGELOG README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>