sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00

71 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2018/10/24 14:28:05 sthen Exp $
COMMENT= DICOM toolkit
V = 3.6.3
DISTNAME= dcmtk-$V
SHARED_LIBS += charls 0.0 # 3.6
SHARED_LIBS += cmr 0.0 # 3.6
SHARED_LIBS += dcmdata 0.0 # 3.6
SHARED_LIBS += dcmdsig 0.0 # 3.6
SHARED_LIBS += dcmfg 0.0 # 3.6
SHARED_LIBS += dcmimage 0.0 # 3.6
SHARED_LIBS += dcmimgle 0.0 # 3.6
SHARED_LIBS += dcmiod 0.0 # 3.6
SHARED_LIBS += dcmjpeg 0.0 # 3.6
SHARED_LIBS += dcmjpls 0.0 # 3.6
SHARED_LIBS += dcmnet 0.0 # 3.6
SHARED_LIBS += dcmpmap 0.0 # 3.6
SHARED_LIBS += dcmpstat 0.0 # 3.6
SHARED_LIBS += dcmqrdb 0.0 # 3.6
SHARED_LIBS += dcmrt 0.0 # 3.6
SHARED_LIBS += dcmseg 0.0 # 3.6
SHARED_LIBS += dcmsr 0.0 # 3.6
SHARED_LIBS += dcmtls 0.0 # 3.6
SHARED_LIBS += dcmtract 0.0 # 3.6
SHARED_LIBS += dcmwlm 0.0 # 3.6
SHARED_LIBS += i2d 0.0 # 3.6
SHARED_LIBS += ijg12 0.0 # 3.6
SHARED_LIBS += ijg16 0.0 # 3.6
SHARED_LIBS += ijg8 0.0 # 3.6
SHARED_LIBS += oflog 0.0 # 3.6
SHARED_LIBS += ofstd 0.0 # 3.6
REVISION= 0
CATEGORIES= graphics
HOMEPAGE= http://www.dcmtk.org/dcmtk.php.en
MASTER_SITES= ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk${V:S/.//g}/
# Several ISC and BSDish
# ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk363/COPYRIGHT
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c crypto jpeg m png pthread ssl ${COMPILER_LIBCXX} tiff
WANTLIB += xml2 z charset iconv
COMPILER = base-clang ports-gcc base-gcc
LIB_DEPENDS= converters/libiconv \
graphics/jpeg \
graphics/png \
graphics/tiff \
textproc/libxml
RUN_DEPENDS= graphics/netpbm
MODULES = devel/cmake
CONFIGURE_ARGS += -DDCMTK_WITH_ICU=OFF \
-DDCMTK_WITH_WRAP=OFF \
-DDCMTK_WITH_THREADS=OFF \
-DBUILD_SHARED_LIBS=On \
-DDCMTK_INSTALL_MANDIR=man \
-DCMAKE_INSTALL_SYSCONFDIR=share/examples \
-DDCMTK_ENABLE_CXX11:BOOL=ON
NO_TEST= Yes
.include <bsd.port.mk>