openbsd-ports/x11/fleditor/Makefile

64 lines
1.4 KiB
Makefile
Raw Normal View History

2005-12-25 15:23:18 -05:00
# $OpenBSD: Makefile,v 1.14 2005/12/25 20:23:18 naddy Exp $
COMMENT= 'Text Editor for FLTK'
2002-09-17 11:17:41 -04:00
V= 0.4.5
DISTNAME= fl_editor-${V}
2005-11-20 07:54:05 -05:00
PKGNAME= fleditor-${V}p0
2005-12-25 15:23:18 -05:00
SHARED_LIBS= fleditor 2.0
CATEGORIES= x11
HOMEPAGE= http://www.robertk.com/source/
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
# LPGL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.robertk.com/source/fl_editor/
EXTRACT_SUFX= .tgz
2005-11-20 07:54:05 -05:00
LIB_DEPENDS= ::x11/fltk
USE_X11= Yes
2001-10-25 18:34:48 -04:00
REGRESS_TARGET= test
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--with-fltk=${LOCALBASE}
2005-12-25 15:23:18 -05:00
MAKE_ENV= LIBfleditor_VERSION=${LIBfleditor_VERSION}
WRKDIST= ${WRKDIR}/fl_editor
2001-10-25 18:34:48 -04:00
# This regression test wants an X11 display
REGRESS_FLAGS+= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
REGRESS_IS_INTERACTIVE= Yes
post-patch:
@rmdir ${WRKSRC}/obj
pre-regress:
.for t in DISPLAY XAUTHORITY
.if !defined($t)
@echo "$t needs to be set to run regress"; exit 1
.endif
.endfor
do-install:
@${install_shared_frag}
${INSTALL_DATA} ${WRKBUILD}/libfleditor.a ${PREFIX}/lib
${INSTALL_DATA_DIR} ${PREFIX}/include/FL
${INSTALL_DATA} ${WRKSRC}/FL/*.[Hh] ${PREFIX}/include/FL
.include <bsd.port.mk>
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
install_shared_frag= :
.else
install_shared_frag=\
${INSTALL_DATA} ${WRKBUILD}/libfleditor.so* ${PREFIX}/lib
.endif