New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79953


Ignore:
Timestamp:
06/30/11 01:25:06 (4 years ago)
Author:
jmr@…
Message:

daapd: fix build (#25577)

Location:
trunk/dports/audio/daapd
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/audio/daapd/Portfile

    r69503 r79953  
    2727                    port:howl 
    2828 
    29 patchfiles          patch-daapd.cc patch-daapd.8 patch-daaplib-src-makefile patch-select.h patch-makefile 
     29patchfiles          patch-daapd.cc patch-daapd.8 patch-daaplib-src-makefile \ 
     30                    patch-select.h patch-makefile patch-ip_acl.c \ 
     31                    patch-libhttpd-Site.mm.in 
    3032 
    3133post-extract { 
    3234    # Convert DOS to UNIX line endings so we can patch 
    3335    reinplace "s|\r||g" ${worksrcpath}/daaplib/src/makefile 
     36} 
     37 
     38if {${configure.compiler} != "gcc-4.0"} { 
     39    configure.cxxflags-append -ffriend-injection 
    3440} 
    3541 
     
    3945                        ${worksrcpath}/daaplib/src/makefile \ 
    4046                        ${worksrcpath}/makefile 
     47    reinplace s|@CXX@|${configure.cxx}|g    ${worksrcpath}/makefile \ 
     48                        ${worksrcpath}/daaplib/src/makefile 
     49    reinplace "s|@CFLAGS@|${configure.cxxflags} ${configure.cxx_archflags}|g" \ 
     50                        ${worksrcpath}/makefile \ 
     51                        ${worksrcpath}/daaplib/src/makefile 
    4152} 
    4253 
     
    4960 
    5061use_configure   no 
     62use_parallel_build no 
    5163 
    5264livecheck.type      regex 
  • trunk/dports/audio/daapd/files/patch-daaplib-src-makefile

    r69504 r79953  
    1 --- daaplib/src/makefile.orig   2006-03-05 07:39:36.000000000 -0600 
    2 +++ daaplib/src/makefile        2010-07-07 22:49:56.000000000 -0500 
    3 @@ -8,8 +8,8 @@ 
     1--- daaplib/src/makefile.orig   2011-06-30 13:03:38.000000000 +1000 
     2+++ daaplib/src/makefile        2011-06-30 13:06:05.000000000 +1000 
     3@@ -1,4 +1,4 @@ 
     4-CC = g++ 
     5+CC = @CXX@ 
     6 AR = ar 
     7 CP = cp 
     8 RM = rm 
     9@@ -8,10 +8,10 @@ 
    410  
    511 LIBS =  
     
    1016+INCDEPLOY = @PREFIX@/include 
    1117 INCPATH = ../include 
    12  CFLAGS = -Wall -Wno-multichar 
     18-CFLAGS = -Wall -Wno-multichar 
     19+CFLAGS = @CFLAGS@ -Wall -Wno-multichar 
    1320  
     21 .cpp.o: 
     22        $(CC) $(CFLAGS) -I$(INCPATH) -c $< 
  • trunk/dports/audio/daapd/files/patch-makefile

    r69503 r79953  
    1 --- makefile.orig       2006-03-05 07:39:37.000000000 -0600 
    2 +++ makefile    2010-07-07 23:09:13.000000000 -0500 
    3 @@ -14,16 +14,16 @@ 
     1--- makefile.orig       2006-03-06 00:39:37.000000000 +1100 
     2+++ makefile    2011-06-30 13:31:16.000000000 +1000 
     3@@ -8,22 +8,22 @@ 
     4 # no need to touch anything below this line 
     5 # ----------------------------------------- 
     6  
     7-CC = g++ 
     8+CC = @CXX@ 
     9 MAKE = $(MAKE_COMMAND) 
     10 TARGET = daapd 
    411 DEPS = daaplib_ libhttpd_ 
    512 OBJS = daapd.o db.o dboutput.o songcache.o parsemp3.o util.o 
     
    1219+INCPATH = -I. -I./daaplib/include -I./libhttpd/src  -I@PREFIX@/include 
    1320+DEPLOY = @PREFIX@ 
    14 +CFLAGS = -Wall -Wno-multichar $(PTHREAD_CFLAGS) 
     21+CFLAGS = @CFLAGS@ -Wall -Wno-multichar $(PTHREAD_CFLAGS) 
    1522  
    1623 # HOWL 
     
    2431        HOWLRECENT := $(word $(words $(HOWLDIRS)),$(HOWLDIRS) ) 
    2532        INCPATH := $(INCPATH) -I$(HOWLRECENT) 
     33@@ -71,7 +71,7 @@ 
     34        cd daaplib/src && $(MAKE) 
     35  
     36 libhttpd_: 
     37-       if test ! -e libhttpd/Site.mm; then cd libhttpd && ./configure; fi 
     38+       if test ! -e libhttpd/Site.mm; then cd libhttpd && env CC="$(CC)" CXX="$(CC)" CFLAGS="$(CFLAGS)" ./configure; fi 
     39        cd libhttpd && $(MAKE) 
     40  
     41 clean: 
  • trunk/dports/audio/daapd/files/patch-select.h

    r69503 r79953  
    1 --- libhttpd/src/select.h.orig  2006-03-05 08:00:38.000000000 -0600 
    2 +++ libhttpd/src/select.h       2010-07-07 22:45:33.000000000 -0500 
     1--- libhttpd/src/select.h.orig  2011-06-30 17:41:19.000000000 +1000 
     2+++ libhttpd/src/select.h       2011-06-30 17:37:20.000000000 +1000 
    33@@ -38,7 +38,7 @@ 
    44  
     
    66 #ifndef _SOCKLEN_T 
    77-       typedef int socklen_t; 
    8 +       typedef __uint32_t socklen_t; 
     8+       typedef unsigned int socklen_t; 
    99 #define _SOCKLEN_T 
    1010 #endif 
    1111 #endif 
     12@@ -68,6 +68,8 @@ struct Client { 
     13  
     14 struct httpd; 
     15  
     16+#define NULL_ITERATOR static_cast<ClientIterator>(0) 
     17+ 
     18 class Clients { 
     19 protected: 
     20        std::list<Client> clientList; 
     21@@ -81,7 +83,7 @@ protected: 
     22                        c++; 
     23                } 
     24         
     25-               return 0; 
     26+               return NULL_ITERATOR; 
     27        } 
     28  
     29  
     30@@ -154,7 +156,7 @@ public:      
     31         
     32        void erase( const int fDesc ) { 
     33                ClientIterator c; 
     34-               if ((c = locateFDesc(fDesc)) != 0) { 
     35+               if ((c = locateFDesc(fDesc)) != NULL_ITERATOR) { 
     36                        clientList.erase(c); 
     37                        close(fDesc); 
     38                } 
     39@@ -162,14 +164,14 @@ public:    
     40  
     41        void finish( const int fDesc ) { 
     42                ClientIterator c; 
     43-               if ((c = locateFDesc(fDesc)) != 0) { 
     44+               if ((c = locateFDesc(fDesc)) != NULL_ITERATOR) { 
     45                        c->finished = true; 
     46                } 
     47        } 
     48  
     49        void address( const int fDesc, char address[HTTP_IP_ADDR_LEN] ) { 
     50                ClientIterator c; 
     51-               if ((c = locateFDesc(fDesc)) != 0) { 
     52+               if ((c = locateFDesc(fDesc)) != NULL_ITERATOR) { 
     53                        strncpy(address, c->address, HTTP_IP_ADDR_LEN); 
     54                } 
     55        } 
     56@@ -180,7 +182,7 @@ public:      
     57  
     58        int readBuf(const int fDesc, char *destBuf, const uint len) { 
     59                ClientIterator c; 
     60-               if ((c = locateFDesc(fDesc)) == 0) { 
     61+               if ((c = locateFDesc(fDesc)) == NULL_ITERATOR) { 
     62                        // printf("unknown client id %d\n", fDesc); 
     63                        return 0; 
     64                } 
     65@@ -192,7 +194,7 @@ public:      
     66                 
     67        int readLine(const int fDesc, char *destBuf, const uint len) { 
     68                ClientIterator c; 
     69-               if ((c = locateFDesc(fDesc)) == 0) { 
     70+               if ((c = locateFDesc(fDesc)) == NULL_ITERATOR) { 
     71                        // printf("unknown client id %d\n", fDesc); 
     72                        return 0; 
     73                } 
     74@@ -217,7 +219,7 @@ public:      
     75        int handleWrite(int socket) { 
     76                int bytesWritten; 
     77                ClientIterator c; 
     78-               if ((c = locateFDesc(socket)) == 0) { 
     79+               if ((c = locateFDesc(socket)) == NULL_ITERATOR) { 
     80                        // printf("unknown client id %d\n", socket); 
     81                        return 2; 
     82                } 
     83@@ -260,7 +262,7 @@ public:      
     84                        return 1; 
     85                } else { 
     86                        ClientIterator c; 
     87-                       if ((c = locateFDesc(fDesc)) == 0) { 
     88+                       if ((c = locateFDesc(fDesc)) == NULL_ITERATOR) { 
     89                                // printf("unknown client id %d\n", fDesc); 
     90                                return 2; 
     91                        } 
     92@@ -304,7 +306,7 @@ public:      
     93         
     94        void doWrite(const int fDesc, const char* string, const uint len) { 
     95                ClientIterator c; 
     96-               if ((c = locateFDesc(fDesc)) == 0) { 
     97+               if ((c = locateFDesc(fDesc)) == NULL_ITERATOR) { 
     98                        //printf("unknown client id %d\n", fDesc); 
     99                        return; 
     100                } 
     101@@ -318,7 +320,7 @@ public:      
     102  
     103        void doWrite(const int fDesc, const char* string) { 
     104                ClientIterator c; 
     105-               if ((c = locateFDesc(fDesc)) == 0) { 
     106+               if ((c = locateFDesc(fDesc)) == NULL_ITERATOR) { 
     107                        //printf("unknown client id %d\n", fDesc); 
     108                        return; 
     109                } 
     110@@ -351,7 +353,7 @@ public:      
     111  
     112        void queueFile(const int socket, const int pendingFile ) { 
     113                ClientIterator c; 
     114-               if ((c = locateFDesc(socket)) == 0) { 
     115+               if ((c = locateFDesc(socket)) == NULL_ITERATOR) { 
     116                        // printf("unknown client id %d\n", socket); 
     117                        return; 
     118                } 
     119@@ -360,7 +362,7 @@ public:      
     120  
     121        void subscribe(const int fDesc) { 
     122                ClientIterator c; 
     123-               if ((c = locateFDesc(fDesc)) == 0) { 
     124+               if ((c = locateFDesc(fDesc)) == NULL_ITERATOR) { 
     125                        //printf("unknown client id %d\n", fDesc); 
     126                        return; 
     127                } 
Note: See TracChangeset for help on using the changeset viewer.