blob: 7779028d99b1847f8e31b0f84fe405696e92d553 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# ex:ts=8
# Ports collection Makefile for: gdis
# Date created: Mar 3, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= gdis
PORTVERSION= 0.86
PORTREVISION= 3
CATEGORIES= science
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= -source.tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Display and manipulation of isolated molecules and periodic systems
LIB_DEPENDS= gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext
USE_GL= yes
USE_GNOME= gtk20
CFLAGS+= -DINSTALL=\"\\\"${DATADIR}\\\"\"
PORTDOCS= CHANGELOG README TODO gdis_manual.txt
PLIST_FILES= bin/gdis %%DATADIR%%/gdis.elements
PLIST_DIRS= %%DATADIR%%
post-patch:
@${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
's|<sys/dir.h>|<dirent.h>|g ; \
s|struct direct|struct dirent|g'
do-configure:
@${SED} 's|SRC.*=|SRCS=|g' < ${WRKSRC}/makefile.src > ${WRKSRC}/Makefile
@${ECHO_CMD} 'PROG=gdis' >> ${WRKSRC}/Makefile
@${ECHO_CMD} 'CFLAGS+=`pkg-config --cflags gtk+-2.0 gthread-2.0 gtkglext-1.0`' >> ${WRKSRC}/Makefile
@${ECHO_CMD} 'LDADD=`pkg-config --libs gtk+-2.0 gthread-2.0 gtkglext-1.0`' >> ${WRKSRC}/Makefile
@${ECHO_CMD} 'PREFIX?=/usr/local' >> ${WRKSRC}/Makefile
@${ECHO_CMD} 'DESTDIR=$${PREFIX}' >> ${WRKSRC}/Makefile
@${ECHO_CMD} 'BINDIR=/bin' >> ${WRKSRC}/Makefile
@${ECHO_CMD} 'NOMAN=true' >> ${WRKSRC}/Makefile
@${ECHO_CMD} '.include <bsd.prog.mk>' >> ${WRKSRC}/Makefile
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 gdis_manual.txt
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|