pkgsrc/devel/flex/Makefile
ryoon cbbf1f00f3 Fix SCO OpenServer 5.0.7/3.2 build.
libsocket is needed.
2014-07-17 12:53:49 +00:00

44 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.41 2014/07/17 12:53:49 ryoon Exp $
DISTNAME= flex-2.5.39
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=flex/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://flex.sourceforge.net/
COMMENT= Fast clone of lex(1), the lexical scanner generator
LICENSE= 2-clause-bsd
# needed for building flex.pdf, make it an option?
#BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo
#BUILD_DEPENDS+= tex-tex-[0-9]*:../../print/tex-tex
#BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex
#BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gm4:run makeinfo
GNU_CONFIGURE= yes
INFO_FILES= yes
TEST_TARGET= check
LIBS.SunOS+= -lm
.include "../../mk/bsd.prefs.mk"
.if ${LOWER_OPSYS} == "aix"
CFLAGS+= -D_LINUX_SOURCE_COMPAT
.endif
.if ${OS_VARIANT} == "SCOOSR5"
LDFLAGS.SCO_SV+= -lsocket
.endif
#.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
USE_LANGUAGES= c c++
USE_TOOLS+= gmake # bmake has problems with the test suite
#.endif
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"