Update to new Tcl layout, makefile cleanup.

OK landry@, stu@
This commit is contained in:
sebastia 2011-01-05 18:35:32 +00:00
parent 6bfda97846
commit 1d66466514
2 changed files with 35 additions and 29 deletions

View File

@ -1,41 +1,47 @@
# $OpenBSD: Makefile,v 1.2 2010/07/29 11:42:56 sebastia Exp $
# $OpenBSD: Makefile,v 1.3 2011/01/05 18:35:32 sebastia Exp $
SHARED_ONLY = Yes
COMMENT = PNG photo image extension for Tcl/Tk
V = 0.9
REVISION = 0
DISTNAME = tkpng$V
PKGNAME = tkpng-$V
DISTNAME = tkpng0.9
PKGNAME = tkpng-0.9
REVISION = 1
SHARED_LIBS = tkpng09 0.0
CATEGORIES = graphics
HOMEPAGE = http://www.muonics.com/FreeStuff/TkPNG/
HOMEPAGE = http://www.muonics.com/FreeStuff/TkPNG/
MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tkpng/}
EXTRACT_SUFX = .tgz
WANTLIB = z
MODULES = x11/tk
BUILD_DEPENDS = ${MODTK_BUILD_DEPENDS}
RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tkpng/}
EXTRACT_SUFX = .tgz
MODULES = x11/tk
BUILD_DEPENDS = ${MODTK_BUILD_DEPENDS}
RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
SEPARATE_BUILD = simple
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --with-tcl=${MODTCL_LIBDIR} \
--with-tk=${MODTK_LIBDIR} \
--with-tkinclude=${MODTK_INCDIR}
NO_REGRESS = Yes
SUBST_VARS = SHLIB_VERSION
CONFIGURE_ENV = LIBtkpng09_VERSION=${LIBtkpng09_VERSION}
FAKE_FLAGS = PKG_DIR=tkpng \
INSTALL_PROGRAM='${INSTALL_DATA}'
SEPARATE_BUILD =concurrent
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
--with-tcl=${MODTCL_LIBDIR} \
--with-tk=${MODTK_LIBDIR} \
--with-tkinclude=${MODTK_INCDIR} \
--libdir=${MODTCL_TCLDIR} \
LIBtkpng09_VERSION=${LIBtkpng09_VERSION} \
CFLAGS="${CFLAGS} -pthread"
NO_REGRESS = Yes
SUBST_VARS = SHLIB_VERSION
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tkpng

View File

@ -1,7 +1,7 @@
@comment $OpenBSD: PLIST,v 1.2 2010/07/29 11:42:56 sebastia Exp $
lib/tkpng0.9/
@lib lib/tkpng0.9/libtkpng09.so.${LIBtkpng09_VERSION}
lib/tkpng0.9/pkgIndex.tcl
@comment $OpenBSD: PLIST,v 1.3 2011/01/05 18:35:32 sebastia Exp $
lib/tcl/tkpng/
@lib lib/tcl/tkpng/libtkpng09.so.${LIBtkpng09_VERSION}
lib/tcl/tkpng/pkgIndex.tcl
share/doc/tkpng/
share/doc/tkpng/README
share/doc/tkpng/license.terms