openbsd-ports/x11/xdrawchem/Makefile
2008-08-20 16:09:23 +00:00

54 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2008/08/20 16:09:23 ajacoutot Exp $
COMMENT= two-dimensional molecule drawing program
DISTNAME= xdrawchem-1.9.9
PKGNAME= ${DISTNAME}p0
CATEGORIES= x11 biology
HOMEPAGE= http://xdrawchem.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xdrawchem/}
WANTLIB= c m pthread z
MODULES= x11/qt3
BUILD_DEPENDS= :autoconf-${AUTOCONF_VERSION}:devel/autoconf/${AUTOCONF_VERSION}
LIB_DEPENDS= openbabel.>=4:openbabel->=2.2.0:misc/openbabel
AUTOCONF_VERSION=2.60
VMEM_WARNING= Yes
USE_X11= Yes
USE_LIBTOOL= Yes
USE_GMAKE= Yes
# XXX follows openbabel GCC to avoid mismatching symbols
MODULES+= gcc4
MODGCC4_LANGS= c++
MODGCC4_ARCHES= *
MAKE_FLAGS= LDFLAGS+="-lqt-mt -pthread -L${X11BASE}/lib"
MAKE_ENV= AUTOCONF_VERSION=${AUTOCONF_VERSION}
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-qtincdir=${MODQT_INCDIR} \
--with-qtlibdir=${MODQT_LIBDIR}
.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
PATCH_LIST= patch-* gcc-*
.endif
.include <bsd.port.mk>