Skip to content

Commit

Permalink
*/*: sync with upstream
Browse files Browse the repository at this point in the history
Taken from: FreeBSD
  • Loading branch information
fichtner committed Jan 14, 2016
1 parent fa06ef8 commit 2184b95
Show file tree
Hide file tree
Showing 248 changed files with 2,057 additions and 1,378 deletions.
7 changes: 3 additions & 4 deletions archivers/unalz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ PORTNAME= unalz
PORTVERSION= 0.65
PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= http://www.kipple.pe.kr/win/unalz/
MASTER_SITES= http://BSDforge.com/projects/source/archivers/unalz/

MAINTAINER= [email protected]
MAINTAINER= [email protected]
COMMENT= Extracts AlZip archives

BROKEN= unfetchable

LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/readme.txt

WRKSRC= ${WRKDIR}/${PORTNAME}
Expand Down
4 changes: 2 additions & 2 deletions archivers/unalz/pkg-descr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Unalz is a BSD-licensed unarchiver for AlZip format which requires
Unalz is a ZLIB-licensed unarchiver for AlZip format which requires
proprietary and Win32-only software but widely used in Korea.

WWW: http://www.kipple.pe.kr/win/unalz/
WWW: http://BSDforge.com/projects/archivers/unalz/
9 changes: 8 additions & 1 deletion archivers/unarchiver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ PORTEXAMPLES= lsar.bash_completion unar.bash_completion

OPTIONS_DEFINE= DOCS EXAMPLES

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000024
CC= clang
CXX= clang++
.endif

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/XADMaster/??ar ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/Extra/??ar.1 ${STAGEDIR}${MANPREFIX}/man/man1
Expand All @@ -42,4 +49,4 @@ do-install-EXAMPLES-on:
${INSTALL_DATA} ${WRKSRC}/Extra/??ar.bash_completion \
${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
.include <bsd.port.post.mk>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Options for compilation

@@ -16,10 +13,9 @@ GNUSTEP_OPTS = -DGNUSTEP \
@@ -16,13 +13,12 @@ GNUSTEP_OPTS = -DGNUSTEP \
-fobjc-exceptions \
-fconstant-string-class=NSConstantString

Expand All @@ -22,5 +22,21 @@
-Wno-multichar \
- -g \
-D_FILE_OFFSET_BITS=64 \
-isystem /usr/local/GNUstep/System/Library/Headers \
-I/usr/local/include
- -isystem /usr/local/GNUstep/System/Library/Headers \
- -I/usr/local/include
+ -isystem $(LOCALBASE)/GNUstep/System/Library/Headers \
+ -I$(LOCALBASE)/include

OBJC_OPTS = -std=gnu99

@@ -46,8 +42,8 @@ LIBS = -Wl,--no-whole-archive \
ALL_LDFLAGS = -Wl,--whole-archive \
-fexceptions \
-fgnu-runtime \
- -L/usr/local/GNUstep/System/Library/Libraries \
- -L/usr/local/lib \
+ -L$(LOCALBASE)/GNUstep/System/Library/Libraries \
+ -L$(LOCALBASE)/lib \
$(LDFLAGS)

# Paths
22 changes: 19 additions & 3 deletions archivers/unarchiver/files/patch-XADMaster_Makefile.freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# Options for compilation

@@ -16,10 +13,8 @@ GNUSTEP_OPTS = -DGNUSTEP \
@@ -16,13 +13,11 @@ GNUSTEP_OPTS = -DGNUSTEP \
-fobjc-exceptions \
-fconstant-string-class=NSConstantString

Expand All @@ -22,8 +22,13 @@
-Wno-multichar \
- -g \
-D_FILE_OFFSET_BITS=64 \
-isystem /usr/local/GNUstep/System/Library/Headers \
-I/usr/local/include
- -isystem /usr/local/GNUstep/System/Library/Headers \
- -I/usr/local/include
+ -isystem $(LOCALBASE)/GNUstep/System/Library/Headers \
+ -I$(LOCALBASE)/include

OBJC_OPTS = -std=gnu99

@@ -42,6 +37,7 @@ LIBS = -Wl,--no-whole-archive \
-lgnustep-base \
-lz \
Expand All @@ -32,6 +37,17 @@
-licuuc \
-lobjc \
-lm
@@ -49,8 +45,8 @@ LIBS = -Wl,--no-whole-archive \
ALL_LDFLAGS = -Wl,--whole-archive \
-fexceptions \
-fgnu-runtime \
- -L/usr/local/lib \
- -L/usr/local/GNUstep/System/Library/Libraries \
+ -L$(LOCALBASE)/lib \
+ -L$(LOCALBASE)/GNUstep/System/Library/Libraries \
$(LDFLAGS)

# Paths
@@ -74,7 +70,7 @@ libXADMaster.a: $(LIBRARY_OBJS)
$(AR) rcs $@ $^

Expand Down
2 changes: 1 addition & 1 deletion astro/josm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# $FreeBSD$

PORTNAME= josm
PORTVERSION= 9060
PORTVERSION= 9329
CATEGORIES= astro java
MASTER_SITES= http://josm.openstreetmap.de/download/ \
http://mirror.amdmi3.ru/distfiles/
Expand Down
4 changes: 2 additions & 2 deletions astro/josm/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (josm-snapshot-9060.jar) = 4202856102b40adbd551d22d384ba424daeddbbdb68bb2eae749863ef4023830
SIZE (josm-snapshot-9060.jar) = 10396174
SHA256 (josm-snapshot-9329.jar) = f81e9e191474b9286e445e0edcc74c789d724c87791d2bec5209fcfae31d8a20
SIZE (josm-snapshot-9329.jar) = 10569664
11 changes: 6 additions & 5 deletions audio/ccaudio2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@
# $FreeBSD$

PORTNAME= ccaudio2
PORTVERSION= 2.1.3
PORTVERSION= 2.2.0
CATEGORIES= audio
MASTER_SITES= GNU/ccaudio

MAINTAINER= [email protected]
COMMENT= C++ class framework for manipulating audio files

LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/COPYING.LESSER

LIB_DEPENDS= libccgnu2.so:${PORTSDIR}/devel/commoncpp \
libucommon.so:${PORTSDIR}/devel/ucommon \
libgsm.so:${PORTSDIR}/audio/gsm \
libspeex.so:${PORTSDIR}/audio/speex

USES= cmake:outsource pkgconfig
USES= cmake:outsource pathfix pkgconfig
USE_LDCONFIG= yes

CMAKE_ARGS+= -DWITH_INCLUDES:PATH=${LOCALBASE}/include \
-DWITH_LIBS:PATH=${LOCALBASE}/lib \
-DINSTALL_MANDIR=man \
-DSYSCONFDIR=${PREFIX}/etc
-DCMAKE_INSTALL_MANDIR:STRING=man

.include <bsd.port.mk>
4 changes: 2 additions & 2 deletions audio/ccaudio2/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (ccaudio2-2.1.3.tar.gz) = b94a898c9a2ae55c812bde810fdf89f40bc44b94fb06c4dc3e40a5341eeec301
SIZE (ccaudio2-2.1.3.tar.gz) = 443867
SHA256 (ccaudio2-2.2.0.tar.gz) = 2756b3c4765f62f69578bbf03b18ccd56baca385a85a1a6679ac6af633b17fb0
SIZE (ccaudio2-2.2.0.tar.gz) = 441444
84 changes: 71 additions & 13 deletions audio/ccaudio2/files/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,78 @@
--- CMakeLists.txt.orig 2014-05-04 01:56:54.000000000 +0200
+++ CMakeLists.txt 2014-05-20 10:27:42.000000000 +0200
@@ -159,7 +159,7 @@
--- CMakeLists.txt.orig 2015-12-13 13:01:59 UTC
+++ CMakeLists.txt
@@ -55,10 +55,7 @@ else()
endif()

include_directories(${USES_UCOMMON_INCLUDE_DIRS})
-link_directories(${USES_UCOMMON_LIBRARY_DIRS})
+link_directories(${USES_UCOMMON_LIBRARY_DIRS} ${WITH_LIBS})
add_definitions(${USES_UCOMMON_CFLAGS})
check_include_files(sys/soundcard.h HAVE_SYS_SOUNDCARD_H)
-check_include_files(speex/speex.h HAVE_SPEEX_SPEEX_H)
-check_include_files(gsm.h HAVE_GSM_H)
-check_include_files(gsm/gsm.h HAVE_GSM_GSM_H)
-check_include_files(endian.h HAVE_ENDIAN_H)
+check_include_files(sys/endian.h HAVE_ENDIAN_H)

# by default we build static libs for windows, shared libs for unix.
@@ -243,7 +243,7 @@
check_library_exists(ossaudio _oss_ioctl "" OSSAUDIO_LIB)
if(OSSAUDIO_LIB)
@@ -79,20 +76,39 @@ if(MATH_LIB)
set(MATH_LIB m)
endif()

-if(NOT HAVE_SPEEX_SPEEX_H AND EXISTS ${CMAKE_BINARY_DIR}/Frameworks/Speex)
- include_directories(${CMAKE_BINARY_DIR}/Frameworks/Speex/include)
- link_directories(${CMAKE_BINARY_DIR}/Frameworks/Speex/lib)
- set(HAVE_SPEEX_SPEEX_H 1)
-endif()
+# Find Speex
+find_path(SPEEX_INCLUDE_DIR speex/speex.h)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/ccaudio2.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/ccaudio2.pc)
-if(HAVE_SPEEX_SPEEX_H)
- set(AUDIO_LIBS ${AUDIO_LIBS} speex)
+find_library(SPEEX_LIBRARY speex)
+
+find_package_handle_standard_args(SPEEX DEFAULT_MSG SPEEX_INCLUDE_DIR SPEEX_LIBRARY)
+
+if(SPEEX_FOUND)
+ set(SPEEX_LIBRARIES ${SPEEX_LIBRARY})
+ set(AUDIO_LIBS ${AUDIO_LIBS} ${SPEEX_LIBRARIES})
+ set(SPEEX_INCLUDE_DIRS ${SPEEX_INCLUDE_DIR})
+ set(HAVE_SPEEX_SPEEX_H 1)
endif()

- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ccaudio2.pc DESTINATION ${INSTALL_LIBDIR}/pkgconfig)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ccaudio2.pc DESTINATION libdata/pkgconfig)
-if(HAVE_GSM_H OR HAVE_GSM_GSM_H)
- set(AUDIO_LIBS ${AUDIO_LIBS} gsm)
+mark_as_advanced(SPEEX_INCLUDE_DIR SPEEX_LIBRARY)
+
+# Find GSM
+find_path(GSM_INCLUDE_DIR gsm.h)
+
+find_library(GSM_LIBRARY gsm)
+
+find_package_handle_standard_args(GSM DEFAULT_MSG GSM_INCLUDE_DIR GSM_LIBRARY)
+
+if(GSM_FOUND)
+ set(GSM_LIBRARIES ${GSM_LIBRARY})
+ set(AUDIO_LIBS ${AUDIO_LIBS} ${GSM_LIBRARIES})
+ set(GSM_INCLUDE_DIRS ${GSM_INCLUDE_DIR})
+ set(HAVE_GSM_H 1)
endif()

install(FILES ${ccaudio_conf} DESTINATION ${SYSCONFDIR})
+mark_as_advanced(GSM_INCLUDE_DIR GSM_LIBRARY)
+######
+
file(GLOB ccaudio_src src/*.cpp)
file(GLOB ccaudio_man1 utils/*.1)
file(GLOB ccaudio_conf utils/*.conf)
@@ -111,12 +127,12 @@ set_source_dependencies(ccaudio2 ucommon
target_link_libraries(ccaudio2 ${USES_UCOMMON_LIBRARIES} ${AUDIO_LIBS} ${WITH_MATH_LIB} ${MATH_LIB})

add_executable(ccaudio-tonetool utils/tonetool.cpp)
-add_dependencies(ccaudio-tonetool ccaudio2 ucommon)
+add_dependencies(ccaudio-tonetool ccaudio2)
set_target_properties(ccaudio-tonetool PROPERTIES OUTPUT_NAME tonetool)
target_link_libraries(ccaudio-tonetool ccaudio2 ucommon ${USES_UCOMMON_LIBRARIES})

add_executable(ccaudio-audiotool utils/audiotool.cpp)
-add_dependencies(ccaudio-audiotool ccaudio2 ucommon)
+add_dependencies(ccaudio-audiotool ccaudio2)
set_target_properties(ccaudio-audiotool PROPERTIES OUTPUT_NAME audiotool)
target_link_libraries(ccaudio-audiotool ccaudio2 ucommon ${USES_UCOMMON_LIBRARIES})

14 changes: 14 additions & 0 deletions audio/ccaudio2/files/patch-src_audiofile.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- src/audiofile.cpp.orig 2015-10-23 22:39:25 UTC
+++ src/audiofile.cpp
@@ -20,7 +20,10 @@
#include <ucommon/ucommon.h>
#include <ccaudio2-config.h>
#ifdef HAVE_ENDIAN_H
-#include <endian.h>
+#include <sys/endian.h>
+#define __LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN)
+#define __BIG_ENDIAN (_BYTE_ORDER == _BIG_ENDIAN)
+#define __BYTE_ORDER _BYTE_ORDER
#endif
#include <ucommon/export.h>
#include <ccaudio2.h>
14 changes: 14 additions & 0 deletions audio/ccaudio2/files/patch-src_friends.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- src/friends.cpp.orig 2015-11-03 08:30:29 UTC
+++ src/friends.cpp
@@ -22,7 +22,10 @@
#include <math.h>
#include <ctype.h>
#ifdef HAVE_ENDIAN_H
-#include <endian.h>
+#include <sys/endian.h>
+#define __LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN)
+#define __BIG_ENDIAN (_BYTE_ORDER == _BIG_ENDIAN)
+#define __BYTE_ORDER _BYTE_ORDER
#endif
#include <ucommon/export.h>
#include <ccaudio2.h>
20 changes: 9 additions & 11 deletions audio/ccaudio2/files/patch-src_oss.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
--- src/oss.cpp.orig 2014-01-28 20:43:54.000000000 +0100
+++ src/oss.cpp 2014-05-20 10:23:04.000000000 +0200
@@ -20,6 +20,13 @@
#include <ccaudio2-config.h>
#include <math.h>

+#ifdef __FreeBSD__
--- src/oss.cpp.orig 2015-11-03 08:30:29 UTC
+++ src/oss.cpp
@@ -31,7 +31,10 @@ int _oss_ccaudio_dummy = 0;
#include <unistd.h>
#include <sys/soundcard.h>
#ifdef HAVE_ENDIAN_H
-#include <endian.h>
+#include <sys/endian.h>
+#define __LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN)
+#define __BIG_ENDIAN (_BYTE_ORDER == _BIG_ENDIAN)
+#define __BYTE_ORDER _BYTE_ORDER
+#endif
+
extern int _oss_ccaudio_dummy;
int _oss_ccaudio_dummy = 0;
#endif

#include <ucommon/export.h>
11 changes: 11 additions & 0 deletions audio/ccaudio2/files/patch-src_w32.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/w32.cpp.orig 2015-03-28 15:21:41 UTC
+++ src/w32.cpp
@@ -21,7 +21,7 @@
#include <ccaudio2-config.h>
#include <math.h>
#ifdef HAVE_ENDIAN_H
-#include <endian.h>
+#include <sys/endian.h>
#endif
#define MAX_DEVICES 1

14 changes: 14 additions & 0 deletions audio/ccaudio2/files/patch-utils_audiotool.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- utils/audiotool.cpp.orig 2015-11-03 08:30:29 UTC
+++ utils/audiotool.cpp
@@ -20,7 +20,10 @@
#include <ccaudio2.h>
#include <ccaudio2-config.h>
#ifdef HAVE_ENDIAN_H
-#include <endian.h>
+#include <sys/endian.h>
+#define __LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN)
+#define __BIG_ENDIAN (_BYTE_ORDER == _BIG_ENDIAN)
+#define __BYTE_ORDER _BYTE_ORDER
#endif

#if !defined(__BIG_ENDIAN)
2 changes: 1 addition & 1 deletion audio/ccaudio2/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ etc/tones.conf
include/ccaudio2.h
lib/libccaudio2.so
lib/libccaudio2.so.2
lib/libccaudio2.so.2.0.3
lib/libccaudio2.so.2.0.6
libdata/pkgconfig/ccaudio2.pc
man/man1/audiotool.1.gz
man/man1/tonetool.1.gz
5 changes: 3 additions & 2 deletions audio/ifp-line/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ USES= autoreconf iconv
GNU_CONFIGURE= yes
MAKE_JOBS_UNSAFE= yes

CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lusb
LDFLAGS+= -lusb

PLIST_FILES= bin/ifp man/man1/ifp.1.gz
PORTDOCS= NEWS README TIPS nonroot.sh
Expand All @@ -31,6 +30,8 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ifp ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ifp.1 ${STAGEDIR}${MANPREFIX}/man/man1

do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

Expand Down
Loading

0 comments on commit 2184b95

Please sign in to comment.