1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to 0.3.1.

- Fix pkg-plist.
- Makefile cleanup.
- Remove unnecessary patches.
- Use CONFIGURE_ARGS to disable use of libpar2 (not present in ports).

PR:		ports/121225
Submitted by:	myself
Approved by:	gabor (mentor), maintainer timeout (> 2 weeks)
This commit is contained in:
Felippe de Meirelles Motta 2008-03-19 12:38:00 +00:00
parent 5e43c731d3
commit 12273806d6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209364
10 changed files with 16 additions and 158 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= nzbget
PORTVERSION= 0.2.3
PORTVERSION= 0.3.1
CATEGORIES= news
MASTER_SITES= SF
@ -17,21 +17,15 @@ LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \
uu.3:${PORTSDIR}/converters/uulib
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-parcheck
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}" \
LOCALBASE="${LOCALBASE}"
USE_GMAKE= yes
PLIST_FILES= bin/nzbget etc/nzbget.cfg.example
post-extract:
@${LN} -sf ${WRKSRC}/uulib/uudeview.h ${WRKSRC}/uudeview.h
post-patch:
@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e '187s/int/intptr_t/' ${WRKSRC}/ArticleDownloader.cpp
PLIST_FILES= bin/nzbget etc/nzbget.conf.example
post-install:
${INSTALL_DATA} ${WRKSRC}/nzbget.cfg.example ${PREFIX}/etc
@${INSTALL_DATA} ${WRKSRC}/nzbget.conf.example ${PREFIX}/etc
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (nzbget-0.2.3.tar.gz) = 25554537c7641bd36f573a5f7c89b449
SHA256 (nzbget-0.2.3.tar.gz) = 9bedeb890f7ef49d466f95d76ffea1d4d22788d6dc760c96c6433bff3ff1f6b6
SIZE (nzbget-0.2.3.tar.gz) = 202660
MD5 (nzbget-0.3.1.tar.gz) = 20c4b3ec0cf2da7fa48dcb985d7a82b7
SHA256 (nzbget-0.3.1.tar.gz) = 1baacc427e9bacf6b2dcfa50f283a9f62b2f467ac70ab6bd4d80e9d20e8e1bbb
SIZE (nzbget-0.3.1.tar.gz) = 222351

View File

@ -1,11 +0,0 @@
--- Connection.cpp.orig Fri Apr 2 18:55:19 2004
+++ Connection.cpp Sat Apr 17 23:12:22 2004
@@ -27,6 +27,8 @@
#include <config.h>
#endif
+#include <sys/types.h>
+
#include <string.h>
#include <stdlib.h>
#include <netdb.h>

View File

@ -1,10 +0,0 @@
--- Coordinator.cpp~ Wed Feb 23 09:05:23 2005
+++ Coordinator.cpp Fri Apr 15 15:41:42 2005
@@ -28,6 +28,7 @@
#endif
#include <unistd.h>
+#include <libgen.h>
#include "global.h"
#include "Coordinator.h"

View File

@ -1,11 +0,0 @@
--- Decoder.cpp.orig Wed Feb 25 13:46:10 2004
+++ Decoder.cpp Sat Apr 17 23:14:45 2004
@@ -29,6 +29,8 @@
#define PROTOTYPES
+#include <unistd.h>
+
#include <stdlib.h>
#include <stdio.h>
#include <uudeview.h>

View File

@ -1,55 +0,0 @@
--- Makefile.in.orig Sun Feb 27 12:59:05 2005
+++ Makefile.in Fri Apr 15 16:31:02 2005
@@ -19,8 +19,8 @@
CP = @CP@
CFLAGS = @CFLAGS@
DEFS = @DEFS@ -DVERSION=\"$(VERSION)\"
-CPPFLAGS = -I./uulib @CPPFLAGS@
-LDFLAGS = -L./uulib @LDFLAGS@
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
LIBS = -luu -lncurses @LIBS@
INSTALL = @INSTALL@
@@ -94,19 +94,14 @@
# Executable programmes
#
-nzbget: $(OBJECTS) nzbget.o ./uulib/libuu.a
+nzbget: $(OBJECTS) nzbget.o
$(CXX) $(CFLAGS) -o $@ $(OBJECTS) nzbget.o $(LDFLAGS) $(LIBS)
@echo "Build succeeded."
-./uulib/libuu.a:
- make -C uulib
-
clean:
- -cd ./uulib && make clean && cd ..
-$(RM) -f *.o $(PROGRAMS) .depend libuu.a
distclean: clean
- -cd ./uulib && make distclean && cd ..
-$(RM) -f Makefile config.status config.log config.h .depend
@@ -123,17 +118,15 @@
distrib:
$(MKDIR) nzbget-$(VERSION)
- $(MKDIR) nzbget-$(VERSION)/uulib
$(CP) -av $(DISTFILES) nzbget-$(VERSION)
- $(CP) -av $(UUDISTFILES) nzbget-$(VERSION)/uulib
cd nzbget-$(VERSION) && ./configure
- cd nzbget-$(VERSION) && make
- cd nzbget-$(VERSION) && make distclean
+ cd nzbget-$(VERSION) && ${MAKE}
+ cd nzbget-$(VERSION) && ${MAKE} distclean
tar -czf nzbget-$(VERSION).tar.gz nzbget-$(VERSION)
$(RM) -r nzbget-$(VERSION)
install: nzbget
- $(INSTALL) nzbget /usr/bin/nzbget
+ $(INSTALL) nzbget ${PREFIX}/bin/nzbget
-include .depend

View File

@ -1,19 +0,0 @@
--- NCursesFrontend.cpp~ Wed Feb 23 09:05:23 2005
+++ NCursesFrontend.cpp Fri Apr 15 15:43:27 2005
@@ -27,6 +27,7 @@
#include <unistd.h>
#include <stdarg.h>
#include <signal.h>
+#include <libgen.h>
#include "NCursesFrontend.h"
@@ -342,7 +343,7 @@
NCURSES_COLORPAIR_DEBUG};
NCOLORON( iMessageTypeColor[Msg.m_eType] );
- mvprintw( iRow, 0, szMessageType[ Msg.m_eType ] );
+ mvprintw( iRow, 0, (char *)szMessageType[ Msg.m_eType ] );
NCOLOROFF( iMessageTypeColor[Msg.m_eType] );
char szBuffer[512];

View File

@ -1,10 +0,0 @@
--- NNTPConnection.h.orig Fri Apr 2 18:55:19 2004
+++ NNTPConnection.h Sat Apr 17 22:53:55 2004
@@ -26,6 +26,7 @@
#ifndef NNTPCONNECTION_H
#define NNTPCONNECTION_H
+#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <vector>

View File

@ -1,10 +0,0 @@
--- NZBQueue.cpp~ Wed Feb 23 09:05:23 2005
+++ NZBQueue.cpp Fri Apr 15 15:40:41 2005
@@ -26,6 +26,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+#include <libgen.h>
#include "NZBQueue.h"
#include "global.h"

View File

@ -1,24 +1,14 @@
--- configure.orig Thu Feb 26 15:49:46 2004
+++ configure Tue Apr 13 22:55:38 2004
@@ -1303,13 +1303,19 @@
CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
PLATFORM="Linux"
--- configure.old 2008-02-29 12:18:26.000000000 -0300
+++ configure 2008-02-29 12:20:35.000000000 -0300
@@ -2362,7 +2362,10 @@
CPPFLAGS1="${CPPFLAGS} -D_GNU_SOURCE"
;;
- *-solaris*)
+ *-freebsd*)
+ LIBPREF="${LOCALBASE}"
*-freebsd*)
- LIBPREF1="/usr/local"
+ LIBPREF1="${LOCALBASE}"
+ CFLAGS="${CFLAGS}"
+ CPPFLAGS="${CPPFLAGS}"
+ PLATFORM="FreeBSD"
+ ;;
+ *-solaris*)
LIBPREF="/usr/local"
PLATFORM="SunOS"
;;
esac
-CFLAGS="-Wall -g -O0 -pipe" CPPFLAGS="-I. ${CPPFLAGS}"
+CFLAGS="${CFLAGS} -Wall" CPPFLAGS="-I. ${CPPFLAGS}"
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
*-solaris*)
LIBPREF1="/usr"