View | Details | Raw Unified | Return to bug 221766 | Differences between
and this patch

Collapse All | Expand All

(-)arabic/libitl/Makefile (-13 / +17 lines)
Lines 2-27 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	libitl
4
PORTNAME=	libitl
5
PORTVERSION=	0.7.0
5
PORTVERSION=	0.8.0
6
PORTREVISION=	1
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=	arabic
7
CATEGORIES=	arabic
8
MASTER_SITES=	SF/arabeyes/ITL%20Library%20%28${PORTNAME}%29/${PORTNAME}-${PORTVERSION}
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	cpm@FreeBSD.org
11
COMMENT=	API abstraction to common Islamic calculations
10
COMMENT=	API abstraction to common Islamic calculations
12
11
13
LICENSE=	LGPL21
12
LICENSE=	LGPL21
14
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
15
14
16
GNU_CONFIGURE=	yes
15
USES=		cmake pkgconfig
17
USE_LDCONFIG=	${PREFIX}/lib/itl
16
USE_LDCONFIG=	yes
18
MAKE_JOBS_UNSAFE=	yes
19
17
20
post-install:
18
USE_GITHUB=	yes
21
.for f in libitl.so libitl.so.0
19
GH_ACCOUNT=	arabeyes-org
22
	${RM} ${STAGEDIR}${PREFIX}/lib/itl/$f
20
GH_PROJECT=	ITL
23
	${LN} -s libitl.so.0.0.7 ${STAGEDIR}${PREFIX}/lib/itl/$f
21
GH_TAGNAME=	f8f41cc
24
.endfor
25
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/itl/libitl.so
26
22
23
PORTDOCS=	*
24
25
OPTIONS_DEFINE=	DOCS
26
27
post-install-DOCS-on:
28
	(cd ${WRKSRC}/new_method/references && ${COPYTREE_SHARE} \
29
		"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
30
27
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)arabic/libitl/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (libitl-0.7.0.tar.gz) = 351a280bebe69b0aa4681c32288a48574407ac3e3a8f273c2be330ac20edce00
1
TIMESTAMP = 1509667607
2
SIZE (libitl-0.7.0.tar.gz) = 135700
2
SHA256 (arabeyes-org-ITL-v0.8.0-f8f41cc_GH0.tar.gz) = cf113a7b963469e2cf56d3b9e9d7cae18c79ac55ab1faa8b4464aad3dc1a4234
3
SIZE (arabeyes-org-ITL-v0.8.0-f8f41cc_GH0.tar.gz) = 1233648
(-)arabic/libitl/files/patch-CMakeLists.txt (+24 lines)
Line 0 Link Here
1
--- CMakeLists.txt.orig	2017-10-31 20:26:09 UTC
2
+++ CMakeLists.txt
3
@@ -12,7 +12,7 @@ set(LIBRARY_VERSION_FULL "${LIBRARY_VERS
4
 message( "Installation target directory is: " ${CMAKE_INSTALL_PREFIX} )
5
 message( "To override this value, use 'make -DCMAKE_INSTALL_PREFIX=$DIR'" )
6
 
7
-set( COMPILE_FLAGS "-ansi -pedantic -Wall -O2" )
8
+set( COMPILE_FLAGS "-pedantic -Wall -O2" )
9
 set( CMAKE_C_FLAGS  "${CMAKE_C_FLAGS} ${COMPILE_FLAGS}" )
10
 
11
 # Specify header files
12
@@ -43,9 +43,9 @@ set(VERSION "${LIBRARY_VERSION_FULL}")
13
 configure_file("libitl.pc.in" "libitl.pc" @ONLY)
14
 
15
 install( FILES ${HEADER_FILES} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/itl" )
16
-install( TARGETS itl DESTINATION ${CMAKE_INSTALL_LIBDIR} )
17
-install( TARGETS itlShared DESTINATION ${CMAKE_INSTALL_LIBDIR} )
18
-install(FILES "libitl.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig/)
19
+install( TARGETS itl DESTINATION ${CMAKE_INSTALL_LIBDIR}/itl )
20
+install( TARGETS itlShared DESTINATION ${CMAKE_INSTALL_LIBDIR}/itl )
21
+install(FILES "libitl.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig/)
22
 
23
 # Specify executables
24
 add_executable( demo_hijri hijri/demo_hijri.c )
(-)arabic/libitl/files/patch-Makefile.in (-24 lines)
Lines 1-24 Link Here
1
--- Makefile.in.orig	2009-03-17 16:26:28 UTC
2
+++ Makefile.in
3
@@ -83,15 +83,15 @@ debinstall: components
4
 
5
 install: build/libitl.so build/libitl.a
6
 	@echo "==> Installing libitl library..."
7
-	test -d $(PREFIX)/lib/itl \
8
-	|| install -d $(PREFIX)/lib/itl \
9
+	test -d $(DESTDIR)$(PREFIX)/lib/itl \
10
+	|| install -d $(DESTDIR)$(PREFIX)/lib/itl \
11
 	|| exit 1;
12
-	install build/$(FULLNAME) $(PREFIX)/lib/itl
13
-	install build/libitl.a $(PREFIX)/lib/itl
14
+	install build/$(FULLNAME) $(DESTDIR)$(PREFIX)/lib/itl
15
+	install build/libitl.a $(DESTDIR)$(PREFIX)/lib/itl
16
         # Using cp -P as cp --no-dereference is not POSIX
17
         # or use --preserve=link instead.
18
-	cp -P build/$(SONAME) $(PREFIX)/lib/itl
19
-	cp -P build/libitl.so $(PREFIX)/lib/itl
20
+	cp -P build/$(SONAME) $(DESTDIR)$(PREFIX)/lib/itl
21
+	cp -P build/libitl.so $(DESTDIR)$(PREFIX)/lib/itl
22
 	@echo "==> Installing ITL components..."
23
 	for i in $(COMPONENTS); do \
24
 	  $(MAKE) -C $$i install || exit 1; \
(-)arabic/libitl/files/patch-hijri_Makefile (-16 lines)
Lines 1-16 Link Here
1
--- hijri/Makefile.orig	2006-09-21 16:34:31 UTC
2
+++ hijri/Makefile
3
@@ -10,10 +10,10 @@ demo_hijri:
4
 
5
 install: all
6
 	@echo "==> Installing hijri component..."
7
-	test -d $(PREFIX)/include/itl \
8
-	|| install -d $(PREFIX)/include/itl \
9
+	test -d $(DESTDIR)$(PREFIX)/include/itl \
10
+	|| install -d $(DESTDIR)$(PREFIX)/include/itl \
11
 	|| exit 1;
12
-	install src/hijri.h $(PREFIX)/include/itl
13
+	install src/hijri.h $(DESTDIR)$(PREFIX)/include/itl
14
 
15
 uninstall:
16
 	@echo "==> Uninstalling hijri component..."
(-)arabic/libitl/files/patch-prayertime_Makefile (-16 lines)
Lines 1-16 Link Here
1
--- prayertime/Makefile.orig	2006-09-21 16:37:51 UTC
2
+++ prayertime/Makefile
3
@@ -10,10 +10,10 @@ demo_prayer:
4
 
5
 install: all
6
 	@echo "==> Installing prayertime component..."
7
-	test -d $(PREFIX)/include/itl \
8
-	|| install $(PREFIX)/include/itl \
9
+	test -d $(DESTDIR)$(PREFIX)/include/itl \
10
+	|| install $(DESTDIR)$(PREFIX)/include/itl \
11
 	|| exit 1;
12
-	install src/prayer.h $(PREFIX)/include/itl
13
+	install src/prayer.h $(DESTDIR)$(PREFIX)/include/itl
14
 
15
 uninstall:
16
 	@echo "==> Uninstalling prayertime component..."
(-)arabic/libitl/pkg-descr (-5 / +10 lines)
Lines 1-5 Link Here
1
The Islamic Tools and Libraries (ITL) is a project to provide a
1
The Islamic Tools and Libraries (ITL) project provides a fully
2
plethora of useful Islamic tools and applications as well as a
2
featured library for performing common Islamic calculations.
3
comprehensive feature-full Islam-centric library. The ITL
3
4
project currently includes full lunar-centric time measurement
4
ITL is currently composed of two library-modules:
5
routines.
5
6
* prayertime: Geographically-aware prayer time and Qibla calculation
7
  routines.
8
* hijri: Hijri date generation/calculation and conversion routines.
9
10
WWW: https://github.com/arabeyes-org/ITL
(-)arabic/libitl/pkg-plist (-1 / +3 lines)
Lines 1-6 Link Here
1
include/itl/astro.h
1
include/itl/hijri.h
2
include/itl/hijri.h
2
include/itl/prayer.h
3
include/itl/prayer.h
3
lib/itl/libitl.a
4
lib/itl/libitl.a
4
lib/itl/libitl.so
5
lib/itl/libitl.so
5
lib/itl/libitl.so.0
6
lib/itl/libitl.so.0
6
lib/itl/libitl.so.0.0.7
7
lib/itl/libitl.so.0.1.8
8
libdata/pkgconfig/libitl.pc

Return to bug 221766