diff options
author | mi <mi@FreeBSD.org> | 2001-03-14 03:15:26 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2001-03-14 03:15:26 +0800 |
commit | 3e76c88909469e872766961c3bd29806989e67d6 (patch) | |
tree | 3a927f00091d8ab9d522d9821c5cfbc7b1687833 /graphics/libimg/files | |
parent | 587564503a455c9bc8d24ecc7a6c535788ca0746 (diff) | |
download | freebsd-ports-gnome-3e76c88909469e872766961c3bd29806989e67d6.tar.gz freebsd-ports-gnome-3e76c88909469e872766961c3bd29806989e67d6.tar.zst freebsd-ports-gnome-3e76c88909469e872766961c3bd29806989e67d6.zip |
Turns out I broke a few too many things with my last commit by
removing the symlinking of the installed shared library into the
${PREFIX}/lib. Those broken things should really use:
package require Img (from TCL)
or
Tcl_PkgRequire(interp, "Img", "1.2", 0) (from C)
instead of trying to link with libimg directly, but there are
too many of them and sobomax lost (his and mine) cool.
This version will just install the library (and SHLIB_LINK) into
${PREFIX}/lib directly. pkgIndex.tcl is modified accordingly.
Diffstat (limited to 'graphics/libimg/files')
-rw-r--r-- | graphics/libimg/files/Makefile.bsd | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/graphics/libimg/files/Makefile.bsd b/graphics/libimg/files/Makefile.bsd index 2ed8da982a27..8f3e43fdcbb3 100644 --- a/graphics/libimg/files/Makefile.bsd +++ b/graphics/libimg/files/Makefile.bsd @@ -2,6 +2,7 @@ LIB= img PORTVERSION?= 1.2.4 LOCALBASE?= /usr/local +X11BASE?= /usr/X11R6 TCL_VER?= 8.3 SHLIB_MAJOR= 1 @@ -20,7 +21,8 @@ TK_STUB_LIB_SPEC= -L${LOCALBASE}/lib -ltkstub${TCL_VER:S/.//} .endif LDADD= -lm -lz -L${LOCALBASE}/lib -lpng -ljpeg -ltiff \ - ${TCL_STUB_LIB_SPEC} ${TCL_STUB_LIB_SPEC} + ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC} \ + -L${X11BASE}/lib -lX11 CFLAGS+= -I${LOCALBASE}/include/tcl${TCL_VER} CFLAGS+= -I${LOCALBASE}/include/tcl${TCL_VER}/generic @@ -42,19 +44,20 @@ all: ${SHLIB_NAME} pkgIndex.tcl pkgIndex.tcl: pkgIndex.tcl.in sed -e 's,@IMG_PATCH_LEVEL@,${PORTVERSION},g' \ - -e 's,@IMG_SHARED_LIB_FILE@,${SHLIB_NAME},g' \ + -e 's,@IMG_SHARED_LIB_FILE@,../${SHLIB_NAME},g' \ < pkgIndex.tcl.in > pkgIndex.tcl DIR = lib/Img1.2 -SHLIBDIR = ${LOCALBASE}/${DIR} +INSTDIR = ${LOCALBASE}/${DIR} +SHLIBDIR = ${LOCALBASE}/lib -${SHLIBDIR} ${SHLIBDIR}/msgs: +${INSTDIR} ${INSTDIR}/msgs: ${MKDIR} $@ -beforeinstall: ${SHLIBDIR} ${SHLIBDIR}/msgs +beforeinstall: ${INSTDIR} ${INSTDIR}/msgs ${INSTALL_DATA} pkgIndex.tcl ${.CURDIR}/demo.tcl ${.CURDIR}/tkv.tcl \ - ${.CURDIR}/imgmsg.tcl ${SHLIBDIR} - ${INSTALL_DATA} ${.CURDIR}/msgs/* ${SHLIBDIR}/msgs/ + ${.CURDIR}/imgmsg.tcl ${INSTDIR} + ${INSTALL_DATA} ${.CURDIR}/msgs/* ${INSTDIR}/msgs/ environ: @${ECHO} SHLIB_NAME=${SHLIB_NAME} SHLIB_LINK=${SHLIB_LINK} DIR=${DIR} |