head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2010.06.09.08.53.37;	author miwi;	state dead;
branches;
next	1.1;

1.1
date	2010.05.02.15.56.47;	author sylvio;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Disconnect www/weave
- Connect www/firefox-sync
- Add MOVED entry
- Remove www/weave
@
text
@--- crypto-obsolete/src/Makefile.orig	2010-04-29 01:34:41.000000000 +0200
+++ crypto-obsolete/src/Makefile	2010-05-01 12:44:11.424608405 +0200
@@@@ -63,6 +63,17 @@@@
   so = so
   cppflags += -shared
 else
+ifeq ($(sys), FreeBSD)
+  os = FreeBSD
+  compiler = gcc3
+  cxx = c++
+  so = so
+  cppflags += -shared
+  ldflags += -L$(PREFIX)/lib/firefox3 -L$(PREFIX)/lib -lc
+  xpidl = $(PREFIX)/lib/libxul/xpidl \
+    -I$(PREFIX)/share/idl/firefox3 \
+    -I$(PREFIX)/share/idl/firefox3/stable
+else
 ifeq ($(sys), MINGW32_NT-6.1)
   os = WINNT
   compiler = msvc
@@@@ -89,6 +100,7 @@@@
 endif
 endif
 endif
+endif
 
 # Arch detection
 
@@@@ -118,6 +130,9 @@@@
 ifeq ($(machine), x86_64)
   arch = x86_64
 else
+ifeq ($(machine), amd64)
+  arch = amd64
+else
   $(error: Sorry, your architecture is unknown/unsupported: $(machine))
 endif
 endif
@@@@ -127,6 +142,7 @@@@
 endif
 endif
 endif
+endif
 
 # Universal binary so no need for $(arch) for Darwin
 
@@@@ -183,6 +199,14 @@@@
           -I$(sdkdir)/include/nspr \
           -I$(sdkdir)/sdk/include
 
+ifeq ($(sys), FreeBSD)
+  headers += -I$(PREFIX)/include/firefox3 \
+             -I$(PREFIX)/include/firefox3/stable \
+             -I$(PREFIX)/include/nspr \
+             -I$(PREFIX)/include/nss \
+             -I$(PREFIX)/include/firefox3/unstable
+endif
+
 # libraries
 libdirs := $(sdkdir)/lib $(sdkdir)/bin
 ifeq ($(wince),1)
@@@@ -197,6 +221,10 @@@@
 
 ifeq ($(os), Linux)
   libs := xpcom_core $(libs)
+else
+ifeq ($(os), FreeBSD)
+  libs := xpcom $(libs)
+endif
 endif
 
 # compiler and Linker Flags
@@@@ -259,6 +287,25 @@@@
              $(sdkdir)/lib/libxpcomglue_s.a \
              $(libdirs) $(libs)
 else
+ifeq ($(os), FreeBSD)
+  libdirs := $(patsubst %,-L%,$(libdirs))
+  libs := $(patsubst %,-l%,$(libs))
+  cppflags += -pipe -O2 \
+              -fPIC -fno-rtti -fno-exceptions -fno-strict-aliasing \
+              -fno-common -pthread \
+              -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth \
+              -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align \
+              -Wno-long-long \
+              -include xpcom-config.h $(headers) \
+              -fshort-wchar
+  ldflags += -pthread -pipe -DMOZILLA_STRICT_API \
+             -Wl,-dead_strip \
+             -Wl,-exported_symbol \
+             -Wl,-z,defs -Wl,-h,WeaveCrypto.so \
+             -Wl,-rpath-link,$(sdkdir)/bin \
+             $(sdkdir)/lib/libxpcomglue_s.a \
+             $(libdirs) $(libs)
+else
 ifeq ($(os), SunOS)
   libdirs := $(patsubst %,-L%,$(libdirs))
   libs := $(patsubst %,-l%,$(libs))
@@@@ -298,6 +345,7 @@@@
 endif
 endif
 endif
+endif
 
 ######################################################################
 
@@@@ -345,6 +393,11 @@@@
 	$(cxx) $(cppflags) -o $@@ $(cpp_sources) $(ldflags)
 	chmod +x $@@
 else
+ifeq ($(os), FreeBSD)
+  $(so_target): $(idl_header)
+	$(cxx) $(cppflags) -o $@@ $(cpp_sources) $(ldflags)
+	chmod +x $@@
+else
 ifeq ($(os), SunOS)
   $(so_target): $(idl_header)
 	$(cxx) $(cppflags) -o $@@ $(cpp_sources) $(ldflags)
@@@@ -364,3 +417,4 @@@@
 endif
 endif
 endif
+endif
@


1.1
log
@- Update to 1.2.3

PR:		ports/146094
Submitted by:	Grzegorz Blach <magik@@rootback.net> (maintainer)
@
text
@@

