From owner-freebsd-ports@FreeBSD.ORG Mon Feb 16 21:03:33 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05D2C16A4CE for ; Mon, 16 Feb 2004 21:03:33 -0800 (PST) Received: from lakemtao05.cox.net (lakemtao05.cox.net [68.1.17.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8166443D1D for ; Mon, 16 Feb 2004 21:03:32 -0800 (PST) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.11]) by lakemtao05.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040217050329.RFIL29834.lakemtao05.cox.net@mezz.mezzweb.com> for ; Tue, 17 Feb 2004 00:03:29 -0500 Date: Mon, 16 Feb 2004 23:02:34 -0600 To: freebsd-ports@freebsd.org From: Jeremy Messenger Content-Type: multipart/mixed; boundary=----------2ey3tWKZyE37dOJoFeax7z MIME-Version: 1.0 Message-ID: User-Agent: Opera7.23/Linux M2 build 518 Subject: Need some help/opinion on new x11-toolkits/gtkscintilla2 port... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2004 05:03:33 -0000 ------------2ey3tWKZyE37dOJoFeax7z Content-Type: text/plain; format=flowed; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am kind of not really like how what I am doing write a new x11-toolkits/gtkscintilla2 port, right now. I need some help and opinions. Current I haven't done: - Add depend on Python, it only need for build not run depend. - Respect CC, LD and etc. How come, it doesn't add in the ldconfig list when I use the INSTALLS_SHLIB=yes? By default, it already have the scintilla source code included in the tarball and it will build with it into static as libgtkscintilla2. Should I remove static and start to use/depend on x11-toolkits/scintilla instead? If yes, then this one I will need some help on create the patch(es). :-) I need this to be port, so I can send another new port of gphpedit[1]. It does work fine with current x11-toolkits/gtkscintilla2 what I have done, but I am just not sure if I am doing it correct. Thanks! [1] http://www.gphpedit.org/ Cheers, Mezz -- bsdforums.org 's moderator, mezz. ------------2ey3tWKZyE37dOJoFeax7z Content-Disposition: attachment; filename=gtkscintilla2.shar Content-Type: text/plain; name=gtkscintilla2.shar Content-Transfer-Encoding: 8bit # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # gtkscintilla2 # gtkscintilla2/pkg-descr # gtkscintilla2/Makefile # gtkscintilla2/distinfo # gtkscintilla2/files # gtkscintilla2/files/patch-Makefile # gtkscintilla2/files/patch-scintilla::gtk::makefile # gtkscintilla2/pkg-plist # echo c - gtkscintilla2 mkdir -p gtkscintilla2 > /dev/null 2>&1 echo x - gtkscintilla2/pkg-descr sed 's/^X//' >gtkscintilla2/pkg-descr << 'END-of-gtkscintilla2/pkg-descr' XGtkScintilla2 provides a GTK2 wrapper for the Scintilla Xsource code editing component and adds some features to it. Scintilla is only Xavailable as a static library and has an unusual API, so GtkScintilla2 provides Xaccess to Scintilla features through a shared library as a true GtkWidget Xsubclass with a GTK2 API. X XWWW: http://www.gphpedit.org/ END-of-gtkscintilla2/pkg-descr echo x - gtkscintilla2/Makefile sed 's/^X//' >gtkscintilla2/Makefile << 'END-of-gtkscintilla2/Makefile' X# New ports collection makefile for: gtkscintilla2 X# Date created: 16 February 2004 X# Whom: Mezz X# X# $FreeBSD$ X# X XPORTNAME= gtkscintilla2 XPORTVERSION= 0.1.0 XCATEGORIES= x11-toolkits XMASTER_SITES= http://www.gphpedit.org/download/files/ XDISTNAME= GtkScintilla2-${PORTVERSION} X XMAINTAINER= mezz7@cox.net XCOMMENT= GTK2 wrappers for the Scintilla source editing components X XUSE_GMAKE= yes XUSE_X_PREFIX= yes XUSE_REINPLACE= yes XINSTALLS_SHLIB= yes XUSE_GNOME= gtk20 X XPKG_CONFIG?= ${LOCALBASE}/bin/pkg-config X Xpost-patch: X @${REINPLACE_CMD} -e 's|pkg-config|${PKG_CONFIG}|g' \ X ${WRKSRC}/Makefile X @${REINPLACE_CMD} -e 's|pkg-config|${PKG_CONFIG}|g' \ X ${WRKSRC}/scintilla/gtk/makefile X X.include END-of-gtkscintilla2/Makefile echo x - gtkscintilla2/distinfo sed 's/^X//' >gtkscintilla2/distinfo << 'END-of-gtkscintilla2/distinfo' XMD5 (GtkScintilla2-0.1.0.tar.gz) = 7e1a5b6c289155fae49ccb3a1a43f0b2 XSIZE (GtkScintilla2-0.1.0.tar.gz) = 489304 END-of-gtkscintilla2/distinfo echo c - gtkscintilla2/files mkdir -p gtkscintilla2/files > /dev/null 2>&1 echo x - gtkscintilla2/files/patch-Makefile sed 's/^X//' >gtkscintilla2/files/patch-Makefile << 'END-of-gtkscintilla2/files/patch-Makefile' X--- Makefile.orig Wed Feb 11 06:42:44 2004 X+++ Makefile Mon Feb 16 16:06:24 2004 X@@ -3,15 +3,15 @@ X NAME = GtkScintilla2 X LIB_NAME = gtkscintilla2 X VERSION = 0.1.0 X-PREFIX = $(shell pkg-config --variable=prefix gtk+-2.0) X+#PREFIX = $(shell pkg-config --variable=prefix gtk+-2.0) X X SCINTILLA_DIR = ./scintilla X SCINTILLA_INCLUDE = $(SCINTILLA_DIR)/include X SCINTILLA_LIB = $(SCINTILLA_DIR)/bin/scintilla.a X SCINTILLA_IFACE = $(SCINTILLA_INCLUDE)/Scintilla.iface X LEXERS = $(wildcard $(SCINTILLA_DIR)/gtk/Lex*.o) X-CFLAGS = $(shell pkg-config --cflags gtk+-2.0) -g -Wall -DGTK -DSCI_LEXER X-LDFLAGS_PRE = $(shell pkg-config --libs gtk+-2.0) -DGTK2 X+CFLAGS += $(shell pkg-config --cflags gtk+-2.0 gthread-2.0) -g -Wall -DPIC -DGTK -DSCI_LEXER X+LDFLAGS_PRE = $(shell pkg-config --libs gtk+-2.0 gthread-2.0) -DGTK2 X LDFLAGS_POST = $(LEXERS) $(SCINTILLA_LIB) -lstdc++ X X CC = gcc X@@ -23,7 +23,7 @@ X X LIB_DIR = $(PREFIX)/lib X INCLUDE_DIR = $(PREFIX)/include/$(LIB_NAME) X-PKG_CONFIG_DIR = $(PREFIX)/lib/pkgconfig X+PKG_CONFIG_DIR = $(PREFIX)/libdata/pkgconfig X X all: $(STATIC_LIB) $(SHARED_LIB) X X@@ -49,14 +49,15 @@ X python scigen.py X X install: all X- install -D --mode=755 $(SHARED_LIB) $(DESTDIR)/$(LIB_DIR)/$(SHARED_LIB) X- install -D --mode=755 $(STATIC_LIB) $(DESTDIR)/$(LIB_DIR)/$(STATIC_LIB) X+ install --mode=755 $(SHARED_LIB) $(DESTDIR)/$(LIB_DIR)/$(SHARED_LIB) X+ install --mode=755 $(STATIC_LIB) $(DESTDIR)/$(LIB_DIR)/$(STATIC_LIB) X rm -f $(DESTDIR)/$(LIB_DIR)lib$(LIB_NAME).so X workdir=$$(pwd) ; cd $(DESTDIR)/$(LIB_DIR); \ X ln -s $(SHARED_LIB) lib$(LIB_NAME).so ; \ X cd $$workdir X- install -D --mode=644 gtkscintilla.h $(DESTDIR)/$(INCLUDE_DIR)/gtkscintilla.h X- install -D --mode=644 GtkScintilla-2.0.pc $(DESTDIR)/$(PKG_CONFIG_DIR)/GtkScintilla-2.0.pc X+ mkdir $(DESTDIR)/$(INCLUDE_DIR) X+ install --mode=644 gtkscintilla.h $(DESTDIR)/$(INCLUDE_DIR)/gtkscintilla.h X+ install --mode=644 GtkScintilla-2.0.pc $(DESTDIR)/$(PKG_CONFIG_DIR)/GtkScintilla-2.0.pc X X uninstall: X rm -f $(DESTDIR)/$(LIB_DIR)$(SHARED_LIB) END-of-gtkscintilla2/files/patch-Makefile echo x - gtkscintilla2/files/patch-scintilla::gtk::makefile sed 's/^X//' >gtkscintilla2/files/patch-scintilla::gtk::makefile << 'END-of-gtkscintilla2/files/patch-scintilla::gtk::makefile' X--- scintilla/gtk/makefile.orig Mon Feb 16 16:12:54 2004 X+++ scintilla/gtk/makefile Mon Feb 16 16:12:56 2004 X@@ -31,21 +31,21 @@ X endif X X ifdef DEBUG X-CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS) X+CXXFLAGS+=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS) X else X-CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS) X+CXXFLAGS+=-DNDEBUG $(CXXBASEFLAGS) $(THREADFLAGS) X endif X X # If explicit setting of GTK1 or GTK2 then use that else look for X # pkg-config which is an OK indication that GTK2 is available X ifdef GTK2 X-CONFIGFLAGS=pkg-config --cflags gtk+-2.0 X+CONFIGFLAGS+=pkg-config --cflags gtk+-2.0 gthread-2.0 X else X ifdef GTK1 X-CONFIGFLAGS=gtk-config --cflags X+CONFIGFLAGS+=gtk-config --cflags X else X ifneq (,$(findstring /,$(shell whereis pkg-config))) X-CONFIGFLAGS=pkg-config --cflags gtk+-2.0 X+CONFIGFLAGS=pkg-config --cflags gtk+-2.0 gthread-2.0 X else X CONFIGFLAGS=gtk-config --cflags X endif X@@ -53,7 +53,7 @@ X endif X X .cxx.o: X- $(CC) `$(CONFIGFLAGS)` $(CXXFLAGS) -c $< X+ $(CC) -DPIC `$(CONFIGFLAGS)` $(CXXFLAGS) -c $< X X #++Autogenerated -- run src/LexGen.py to regenerate X #**LEXOBJS=\\\n\(\*.o \) END-of-gtkscintilla2/files/patch-scintilla::gtk::makefile echo x - gtkscintilla2/pkg-plist sed 's/^X//' >gtkscintilla2/pkg-plist << 'END-of-gtkscintilla2/pkg-plist' Xinclude/gtkscintilla2/gtkscintilla.h Xlib/libgtkscintilla2.a Xlib/libgtkscintilla2.so Xlib/libgtkscintilla2.so.0.1.0 Xlibdata/pkgconfig/GtkScintilla-2.0.pc X@dirrm include/gtkscintilla2 END-of-gtkscintilla2/pkg-plist exit ------------2ey3tWKZyE37dOJoFeax7z--