Add fltk-xunicode, FLTK with Unicode support, as a slave port to fltk.

Approved by:	Dmitry S. Sivachenko <dima@chg.ru> (MAINTAINER of fltk)
This commit is contained in:
Akinori MUSHA 2000-08-25 18:24:49 +00:00
parent e06ef9f169
commit 91e0a451f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31976
7 changed files with 71 additions and 3 deletions

View File

@ -10,6 +10,7 @@
SUBDIR += colorstep
SUBDIR += engradient
SUBDIR += fltk
SUBDIR += fltk-xunicode
SUBDIR += fox
SUBDIR += gnome--
SUBDIR += gnome-look

View File

@ -0,0 +1,12 @@
# New ports collection makefile for: fltk-xunicode
# Date created: 25 Aug 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
MASTERDIR= ${.CURDIR}/../fltk
WITH_XUNICODE= yes
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1 @@
FLTK with Unicode support

View File

@ -6,7 +6,7 @@
#
PORTNAME= fltk
PORTVERSION= 1.0.9
PORTVERSION?= ${_PORTVERSION}
CATEGORIES= x11-toolkits
MASTER_SITES= ftp://ftp.fltk.org/pub/fltk/${VERSION}/ \
ftp://ftp.chg.ru/pub/X11/fltk/${VERSION}/ \
@ -14,16 +14,33 @@ MASTER_SITES= ftp://ftp.fltk.org/pub/fltk/${VERSION}/ \
ftp://ftp.northamerica.net/pub/ESP/fltk/${VERSION}/ \
ftp://ftp.funet.fi/mirrors/ftp.easysw.com/pub/fltk/${VERSION}/ \
ftp://ftp.kddlabs.co.jp/pub/lang/fltk/${VERSION}/
DISTNAME= ${PKGNAME}-source
DISTNAME= ${PORTNAME}-${VERSION}-source
MAINTAINER= dima@chg.ru
.if defined(WITH_XUNICODE)
PATCH_VERSION= 20000625
_PORTVERSION+= ${VERSION}.${PATCH_VERSION}
PKGNAMESUFFIX= -xunicode
PATCH_SITES= http://www.ab.wakwak.com/~tino/jatk/fltk/
PATCHFILES= ${PORTNAME}-${VERSION}${PKGNAMESUFFIX}-${PATCH_VERSION}.diff.gz
PATCH_DIST_STRIP= -p1
EXTRA_PATCHES= ${PATCHDIR}/xunicode.patch-*
BUILD_DEPENDS= ${X11BASE}/lib/libxunicode.a:${PORTSDIR}/converters/xunicode
.else
_PORTVERSION+= ${VERSION}
.endif
VERSION= 1.0.9
USE_BZIP2= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-shared
WRKSRC= ${WRKDIR}/${PKGNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}-${VERSION}
USE_X_PREFIX= yes
USE_MESA= yes
MAN1= fluid.1

View File

@ -1 +1,2 @@
MD5 (fltk-1.0.9-source.tar.bz2) = 139c134098128754f706b4f3a905cbc5
MD5 (fltk-1.0.9-xunicode-20000625.diff.gz) = 4c8282e0287b3fa13b7693b23a436320

View File

@ -0,0 +1,25 @@
--- makeinclude.in.orig Fri Aug 25 14:06:06 2000
+++ makeinclude.in Fri Aug 25 14:24:57 2000
@@ -31,8 +31,11 @@
libdir =@libdir@
srcdir =@srcdir@
VPATH =@srcdir@
-XUNIDIR =@prefix@/xunicode
-INCLUDE =-I.. -I$(XUNIDIR)/include
+XUNIINCDIR =@prefix@/include/xunicode
+XUNILIBDIR =@prefix@/lib
+INCLUDE =-I.. -I$(XUNIINCDIR)
+
+MAKEFLAGS:= ${MAKEFLAGS} UNILIBDIR="${UNILIBDIR}"
# compiler names:
CXX =@CXX@
@@ -51,7 +54,7 @@
DSOCOMMAND =@DSOCOMMAND@
# libraries to link with:
-ADDLIBS =$(XUNIDIR)/lib/libxunicode.a #-lxpg4
+ADDLIBS =$(XUNILIBDIR)/libxunicode.a #-lxpg4
LDLIBS =@LDFLAGS@ @LIBS@ -lX11 -lXext @X_EXTRA_LIBS@ $(ADDLIBS) -lm
GLDLIBS =@LDFLAGS@ @LIBS@ @GLLIB@ -lX11 -lXext @X_EXTRA_LIBS@ $(ADDLIBS) -lm

View File

@ -0,0 +1,11 @@
--- src/Makefile.orig Tue Jun 6 06:21:03 2000
+++ src/Makefile Fri Aug 25 14:17:18 2000
@@ -161,7 +161,7 @@
libfltk.so.1 libfltk.sl.1: $(OBJECTS)
echo $(DSOCOMMAND) $@ ...
- $(DSOCOMMAND) $@ $(OBJECTS)
+ $(DSOCOMMAND) $@ $(OBJECTS) -L${XUNILIBDIR} -lxunicode
clean :
-@ rm -f *.o *.do $(DSONAME) $(LIBRARY) $(CLEAN) core *~ ../include/*~ makedepend cmap