espie 4f4423731c and that makes 3!
-fms-extensions is inoperative with clang, and it sure builds without it
(unnamed structs work as long as you don't try any pedantic standard)
2017-06-21 14:14:22 +00:00

38 lines
939 B
Makefile

# $OpenBSD: Makefile,v 1.16 2017/06/21 14:14:22 espie Exp $
COMMENT= Small Device C Compiler
BROKEN-sparc64= illegal operands building SDCCval.c
BROKEN-alpha= sdcc segfaults when building the device library
DISTNAME= sdcc-src-3.6.0
PKGNAME= ${DISTNAME:S/-src//}
REVISION = 0
EXTRACT_SUFX= .tar.bz2
CATEGORIES= devel
HOMEPAGE= http://sdcc.sourceforge.net/
MAINTAINER= Brian Callahan <bcallah@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c m ${LIBCXX} readline termcap z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sdcc/}
BUILD_DEPENDS= ${RUN_DEPENDS} \
devel/boost
RUN_DEPENDS= devel/gputils
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= docdir=${PREFIX}/share/doc/sdcc
CONFIGURE_ENV+= sdcc_cv_CCggdb=no \
sdcc_cv_c_fms_extensions=no \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
USE_GMAKE= Yes
WRKDIST= ${WRKDIR}/${PKGNAME}
.include <bsd.port.mk>