1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-26 21:17:40 +00:00
freebsd-ports/x11-toolkits/tix/Makefile
Jean-Marc Zucconi 7a2c4ae39e Unbreak the update to to use Tcl/Tk 8.2. The key is to compile with
-fwritable-strings (it would probably better to find and fix the specific
portion of Tix code responsible of the core dump but that's not easy)
Install libs and program with the 82 or 8.2 suke the name (instead of 80 or
8.0 resp.)
1999-12-05 06:46:34 +00:00

66 lines
2.2 KiB
Makefile

# New ports collection makefile for: tix
# Version required: 4.1.0.007
# Date created: 22 December 1996
# Whom: Thomas Gellekum <tg@freebsd.org>
#
# $FreeBSD$
#
DISTNAME= Tix4.1.0.007
PKGNAME= tix-4.1.0.007
CATEGORIES= x11-toolkits tk82
MASTER_SITES= http://www.neosoft.com/tcl/ftparchive/%SUBDIR%/ \
ftp://ftp.riken.go.jp/pub/lang/tcl/netsoft/%SUBDIR%/
MASTER_SITE_SUBDIR= sorted/packages-8.0/x11/Tix/4.1.0.007
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= tk82.1:${PORTSDIR}/x11-toolkits/tk82
WRKSRC= ${WRKDIR}/Tix4.1.0.007/unix/tk8.0
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-shared --enable-sam \
--with-tcl="${PREFIX}/include/tcl8.2" \
--with-tk="${PREFIX}/include/tk8.2"
# this should probably be added to bsd.port.mk
CONFIGURE_ENV= PREFIX=${PREFIX}
MAN1= tixwish.1
MANN= BtnBox.n Balloon.n ChkList.n Destroy.n ComboBox.n Control.n \
DItem.n DirDlg.n DirList.n DirTree.n FileBox.n EFileBox.n \
EFileDlg.n FileDlg.n FileEnt.n Form.n GetBool.n GetInt.n \
Grid.n HList.n InpOnly.n LabEntry.n Meter.n LabFrame.n \
ListNBK.n Mwm.n NBFrame.n NoteBook.n SHList.n PopMenu.n \
OptMenu.n PanedWin.n SListBox.n SText.n SWindow.n TList.n \
Select.n StdBBox.n TixIntro.n Tree.n Utils.n Wm.n compound.n \
pixmap.n tix.n
TIX_LIB= libtix4182.so
TIXSAM_LIB= libtixsam4182.so
CFLAGS+= -fwritable-strings
.include <bsd.port.pre.mk>
pre-configure:
@(cd ${WRKSRC}/.. && \
CC="${CC}" ac_cv_path_CC="${CC}" CFLAGS="${CFLAGS}" \
INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
post-install:
@(cd ${WRKSRC}/.. && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
${LN} -fs ${PREFIX}/bin/tixwish4.1.8.2 ${PREFIX}/bin/tixwish
${LN} -fs ${TIX_LIB_FILE} ${PREFIX}/lib/${TIX_LIB}
${LN} -fs ${TIXSAM_LIB_FILE} ${PREFIX}/lib/${TIXSAM_LIB}
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
.for dir in generic unix
@${MKDIR} ${PREFIX}/include/tix/${dir}
${INSTALL_DATA} ${WRKSRC}/../../${dir}/*.h ${PREFIX}/include/tix/${dir}
.endfor
${RM} ${PREFIX}/include/tix/generic/tix.h
@# These two files are the same
${LN} -sf ../../tix.h ${PREFIX}/include/tix/generic
.include <bsd.port.post.mk>