blob: 0cbd10be31830b8d53781ab085aa4403f775aad4 (
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
|
# New ports collection makefile for: xdrawchem
# Date created: 13 April 2000
# Whom: Trevor Johnson
#
# $FreeBSD$
#
PORTNAME= xdrawchem
PORTVERSION= 1.7.8
CATEGORIES= biology
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xdrawchem
EXTRACT_SUFX= .tgz
MAINTAINER= trevor@FreeBSD.org
COMMENT= Chemical drawing program
LIB_DEPENDS= openbabel.0:${PORTSDIR}/science/openbabel
CFLAGS+= -O0
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
GNU_CONFIGURE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
QTCFGLIBS+= ${PTHREAD_LIBS}
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
USE_GMAKE= yes
USE_QT_VER= 3
USE_REINPLACE= yes
USE_X_PREFIX= yes
pre-configure:
${MKDIR} ${WRKDIR}
${ECHO_CMD} \
"Warning: source code for this version has not been reviewed!" \
> ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
@${ECHO_CMD} Waiting ten seconds--press control-C to cancel build.
@sleep 10
post-patch:
@${REINPLACE_CMD} -e \
's|malloc\.h|stdlib.h|g' ${WRKSRC}/xdrawchem/application_ob.cpp
@${REINPLACE_CMD} -e \
's|lround|(long int)rint|g' ${WRKSRC}/xdrawchem/*.cpp
.include <bsd.port.mk>
|