1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Catch up to the new bsd.lib.mk API (the library is not internal).

This commit is contained in:
Ruslan Ermilov 2002-07-21 20:23:00 +00:00
parent 3003a8c055
commit c1b840b390
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63335
2 changed files with 4 additions and 14 deletions

View File

@ -1,8 +1,6 @@
PACKAGE = Gdtclft
VERSION = 2.2
LIB = ${PACKAGE}2
SHLIB_MAJOR = 2
SHLIB_MINOR = 1
SHLIB_NAME = lib${PACKAGE}2.so.2
SRCS = gdhandle.c gdCmd.c
@ -25,9 +23,7 @@ CFLAGS +=-I${PREFIX}/include/tcl${TCL_VER} -I${PREFIX}/include/gd
CFLAGS +=-DNDEBUG -Wall -I. -DUSE_TCL_STUBS -I${PREFIX}/include
CFLAGS +=-DVERSION=\"${VERSION}\"
INTERNALLIB = don't build the useless static version
all: ${SHLIB_NAME} pkgIndex.tcl
all: pkgIndex.tcl
pkgIndex.tcl:
echo 'package ifneeded $(PACKAGE) $(VERSION) [list load [file join $$dir $(SHLIB_NAME)] $(PACKAGE)]' > pkgIndex.tcl

View File

@ -1,13 +1,10 @@
LIB= img
SHLIB_NAME= libimg.so.1
PORTVERSION?= 1.2.4
LOCALBASE?= /usr/local
X11BASE?= /usr/X11R6
TCL_VER?= 8.3
SHLIB_MAJOR= 1
SHLIB_MINOR= 2
.if exists(${LOCALBASE}/lib/tk${TCL_VER}/tkConfig.sh)
# If for some reason the file does not exist -- make the best guess. In
# reality, it will exist by the time we are actually doing the build, so
@ -38,10 +35,7 @@ CFLAGS+= -DHAVE_JPEGLIB_H -DHAVE_TIFF_H -DHAVE_DLFCN_H -DHAVE_IMG_H
# libtiff itself does NOT install. -mi
CFLAGS+= -I${.CURDIR}/libtiff
INTERNALLIB = don't build the useless static version
NOPROFILE = don't build the profilable lib
all: ${SHLIB_NAME} pkgIndex.tcl
all: pkgIndex.tcl
pkgIndex.tcl: pkgIndex.tcl.in
sed -e 's,@IMG_PATCH_LEVEL@,${PORTVERSION},g' \