Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/lang/php5-extensions/Makefile,v
retrieving revision 1.22
diff -u -u -r1.22 Makefile
--- Makefile	26 Apr 2011 12:05:57 -0000	1.22
+++ Makefile	22 Nov 2011 14:27:03 -0000
@@ -101,13 +101,9 @@
 		ZIP             "ZIP support" off \
 		ZLIB            "ZLIB support" off
 
-PORT_DBDIR?=	/var/db/ports
 LATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
-OPTIONSFILE?=	${PORT_DBDIR}/${LATEST_LINK}/options
 
-.if exists(${OPTIONSFILE})
-.include "${OPTIONSFILE}"
-.endif
+.include <bsd.port.options.mk>
 
 ALL_OPTIONS=	BCMATH BZ2 CALENDAR CTYPE CURL DBA \
 		DOM EXIF FILEINFO FILTER FRIBIDI FTP GD GETTEXT \