View | Details | Raw Unified | Return to bug 143081
Collapse All | Expand All

(-)x11-toolkits/qt4pas/Makefile (-13 / +4 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	qt4pas
8
PORTNAME=	qt4pas
9
PORTVERSION=	1.70
9
PORTVERSION=	2.0
10
CATEGORIES=	x11-toolkits
10
CATEGORIES=	x11-toolkits
11
MASTER_SITES=	http://users.telenet.be/Jan.Van.hijfte/qtforfpc/
11
MASTER_SITES=	http://users.telenet.be/Jan.Van.hijfte/qtforfpc/
12
DISTNAME=	${PORTNAME}-${PORTVERSION:S/^/V/}_Qt${QT4_VER_MIN}
12
DISTNAME=	${PORTNAME}-${PORTVERSION:S/^/V/}_Qt${QT4_VER_MIN}
Lines 18-24 Link Here
18
USE_QT_VER=	4
18
USE_QT_VER=	4
19
QT_COMPONENTS=	corelib gui network script webkit
19
QT_COMPONENTS=	corelib gui network script webkit
20
20
21
QT4_VER_MIN=	4.5.0
21
QT4_VER_MIN=	4.5.3
22
22
23
.include <bsd.port.pre.mk>
23
.include <bsd.port.pre.mk>
24
24
Lines 26-41 Link Here
26
IGNORE=	Please update your current qt4 version to ${QT4_VER_MIN}
26
IGNORE=	Please update your current qt4 version to ${QT4_VER_MIN}
27
.endif
27
.endif
28
28
29
post-patch:
29
pre-build:
30
	@${REINPLACE_CMD} -e 's|%%QT_INCDIR%%|${QT_INCDIR}|' -e 's|%%QT_LIBDIR%%|${QT_LIBDIR}|g' -e \
30
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}
31
		's|%%CXX%%|${CXX}|g' -e 's|%%STRIP_CMD%%|${STRIP_CMD}|g' -e 's|bash|sh|g' ${WRKSRC}/compile_lib.sh
32
33
do-build:
34
	@cd ${WRKSRC} && \
35
		${SH} compile_lib.sh
36
37
do-install:
38
	@${MKDIR} ${PREFIX}/lib/qt4
39
	${INSTALL_PROGRAM} ${WRKSRC}/libqt4intf.so ${PREFIX}/lib/qt4
40
31
41
.include <bsd.port.post.mk>
32
.include <bsd.port.post.mk>
(-)x11-toolkits/qt4pas/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (qt4pas-V1.70_Qt4.5.0.tar.gz) = 1b44cd72a6c226524a54afe93b68ecb8
1
MD5 (qt4pas-V2.0_Qt4.5.3.tar.gz) = 56afc2d3e4088c27fbffbc08b2e3862c
2
SHA256 (qt4pas-V1.70_Qt4.5.0.tar.gz) = d20c6cf48b854074a5449e621aaf1f3fde7d38f13abb945887ef9b642fcbd01e
2
SHA256 (qt4pas-V2.0_Qt4.5.3.tar.gz) = 06486792523ea01b89a3985f844015a93a353719c85e700e5c56d3504ac8a428
3
SIZE (qt4pas-V1.70_Qt4.5.0.tar.gz) = 403932
3
SIZE (qt4pas-V2.0_Qt4.5.3.tar.gz) = 347301
(-)x11-toolkits/qt4pas/pkg-plist (-2 / +4 lines)
Lines 1-2 Link Here
1
lib/qt4/libqt4intf.so
1
lib/qt4/libQt4Pas.so
2
@dirrmtry lib/qt4
2
lib/qt4/libQt4Pas.so.5
3
lib/qt4/libQt4Pas.so.5.2
4
lib/qt4/libQt4Pas.so.5.2.0
(-)x11-toolkits/qt4pas/files/patch-compile_lib.sh (-33 lines)
Lines 1-33 Link Here
1
--- ./compile_lib.sh.orig	2009-04-20 17:59:59.000000000 +0400
2
+++ ./compile_lib.sh	2009-07-12 15:18:58.000000000 +0400
3
@@ -1,4 +1,4 @@
4
-#!/bin/env bash
5
+#!/bin/env sh
6
 # get latest from http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
7
 # for more info, you can visit the links on above page to FreePascal and Lazarus wiki
8
 
9
@@ -7,18 +7,16 @@
10
 # do configure and gmake in that Qt4 dir
11
 
12
 NAME=libqt4intf.so
13
-QTDIR=../qt-all-opensource-src-4.5.0
14
-INCLUDE_PATH="-I. -I$QTDIR/include -I$QTDIR/include/Qt -I$QTDIR/include/QtGui -I$QTDIR/include/QtCore -Iqlcl "
15
-LIB_PATH=$QTDIR/lib
16
-export LD_LIBRARY_PATH=$LIB_PATH
17
+QTDIR=%%QT_INCDIR%%
18
+INCLUDE_PATH="-I. -I$QTDIR -I$QTDIR/Qt -I$QTDIR/QtGui -I$QTDIR/QtCore -Iqlcl "
19
+LIB_PATH=%%QT_LIBDIR%%
20
+
21
 if [ -e "$LIB_PATH/libQtCore.so.4" ]
22
 then
23
   echo please wait for compile to finish ...
24
-  g++ -D BINUX $INCLUDE_PATH qtpas.cpp -o libqt4intf.so -shared -fPIC -lQtCore -lQtGui -lQtNetwork -lQtWebKit  -Xlinker -soname=$NAME -Xlinker --library-path -Xlinker $LIB_PATH
25
-  echo Showing used Qt libraries when LD_LIBRARY_PATH=$LD_LIBRARY_PATH
26
-  ldd $NAME | grep libQt
27
+  %%CXX%% -D BINUX $INCLUDE_PATH qtpas.cpp -o libqt4intf.so -shared -fPIC -lQtCore -lQtGui -lQtNetwork -lQtWebKit  -Xlinker -soname=$NAME -Xlinker --library-path -Xlinker $LIB_PATH
28
   echo stripping library
29
-  strip --strip-all $NAME
30
+  %%STRIP_CMD%% --strip-all $NAME
31
   echo Done
32
 else
33
   echo "Please Modify location of Qt4 in this script"

Return to bug 143081