2002-10-14 13:40:18 +02:00
|
|
|
|
# New ports collection makefile for: xmedcon
|
|
|
|
|
# Date created: 26 September 2002
|
|
|
|
|
# Whom: Paul Everlund
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
#
|
|
|
|
|
|
2003-02-05 14:39:28 +01:00
|
|
|
|
PORTNAME= xmedcon
|
2005-02-18 09:36:38 +01:00
|
|
|
|
PORTVERSION= 0.9.8.4
|
2006-02-23 11:40:44 +01:00
|
|
|
|
PORTREVISION= 1
|
2003-02-05 14:39:28 +01:00
|
|
|
|
CATEGORIES= graphics
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2002-10-14 13:40:18 +02:00
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
2006-02-10 02:43:39 +01:00
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:17:17 +01:00
|
|
|
|
COMMENT= A medical image conversion utility and library
|
2002-10-14 13:40:18 +02:00
|
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
|
GNU_CONFIGURE= yes
|
2002-10-14 13:40:18 +02:00
|
|
|
|
INSTALLS_SHLIB= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-02-23 17:02:57 +01:00
|
|
|
|
USE_SUBMAKE= yes
|
2002-10-14 13:40:18 +02:00
|
|
|
|
|
2004-02-23 17:02:57 +01:00
|
|
|
|
OPTIONS= X11 "With X11" on \
|
|
|
|
|
GLIB "With Glib" on \
|
|
|
|
|
ACR_NEMA "With Acr/Nema 2.0" on \
|
|
|
|
|
ANALYZE "With Analyze (SPM)" on \
|
2004-04-01 14:27:48 +02:00
|
|
|
|
CONCORDE "With Concorde <20>PET" on \
|
2004-02-23 17:02:57 +01:00
|
|
|
|
DICOM "With DICOM 3.0" on \
|
|
|
|
|
DICOM_LJPEG "With DICOM 3.0 Lossless JPEG" on \
|
2004-11-21 02:56:45 +01:00
|
|
|
|
ECAT "With CTI ECAT 6/7" on \
|
2004-02-23 17:02:57 +01:00
|
|
|
|
GIF "With GIF87a/89a" on \
|
|
|
|
|
INTERFILE "With InterFile 3.3" on \
|
|
|
|
|
INW "With INW (RUG)" on \
|
|
|
|
|
PNG "With PNG" on
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-02-23 17:02:57 +01:00
|
|
|
|
WANT_GNOME= yes
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-02-23 17:02:57 +01:00
|
|
|
|
.include <bsd.port.pre.mk>
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-11-21 02:56:45 +01:00
|
|
|
|
CONFIGURE_ARGS= --enable-llcheck
|
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_X11)
|
2004-11-21 02:56:45 +01:00
|
|
|
|
CONFIGURE_ARGS+= --disable-gui
|
2004-02-23 17:02:57 +01:00
|
|
|
|
PLIST_SUB+= X11="@comment "
|
2003-04-29 05:30:43 +02:00
|
|
|
|
.else
|
2004-02-23 17:02:57 +01:00
|
|
|
|
USE_GNOME+= gtk12 gdkpixbuf
|
|
|
|
|
PLIST_SUB+= X11=""
|
2002-10-14 13:40:18 +02:00
|
|
|
|
.endif
|
|
|
|
|
|
2004-02-23 17:02:57 +01:00
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_GLIB)
|
2003-02-05 14:39:28 +01:00
|
|
|
|
CONFIGURE_ARGS+= --disable-glib
|
|
|
|
|
.endif
|
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_ACR_NEMA) || defined(WITHOUT_DICOM)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-acr
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_GIF)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-gif
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_INW)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-inw
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_ANALYZE)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-anlz
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_CONCORDE)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-conc
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_ECAT)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-ecat
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_INTERFILE)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-intf
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_DICOM) || defined(WITHOUT_DICOM_LJPEG)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-dicom
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_DICOM_LJPEG)
|
2002-10-19 21:29:56 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-ljpg
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if defined(WITHOUT_PNG)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
CONFIGURE_ARGS+= --disable-png
|
|
|
|
|
.else
|
2004-02-23 17:02:57 +01:00
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
2002-10-14 13:40:18 +02:00
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/xmedcon
|
|
|
|
|
|
|
|
|
|
MAN1= medcon.1 xmedcon-config.1
|
2004-06-27 16:44:39 +02:00
|
|
|
|
.if !defined(WITHOUT_X11)
|
2002-10-14 13:40:18 +02:00
|
|
|
|
MAN1+= xmedcon.1
|
|
|
|
|
.endif
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-04-01 14:27:48 +02:00
|
|
|
|
MAN3= medcon.3
|
2003-01-02 20:23:46 +01:00
|
|
|
|
|
2004-04-01 14:27:48 +02:00
|
|
|
|
MAN4= m-acr.4 m-anlz.4 m-ecat.4 m-gif.4 m-intf.4 m-inw.4
|
2002-10-14 13:40:18 +02:00
|
|
|
|
|
2004-02-23 17:02:57 +01:00
|
|
|
|
.include <bsd.port.post.mk>
|