The Manhattan real estate developer charged with killing his friend while driving drunk has had his $1 million bail revoked in the wake of accusations that he tried to buy a boat in Puerto Rico and flee to South America.

State Supreme Court Justice Fernando Camacho on Wednesday ordered Sean Ludwick, 43, to jail after an employee of the Condado Vanderbilt Hotel in San Juan called the court.

The employee said Ludwick was there last weekend taking sailing lessons and negotiating to pay almost $400,000 for a boat large enough to take him somewhere in South America.

Ludwick is charged with aggravated vehicular homicide. He is accused of driving with a blood-alcohol level of 0.18 percent — more than double the legal limit — when he crashed his Porsche into a utility pole on Aug. 30 in Sag Harbor, killing his passenger, real estate broker Paul Hansen, 53, of Sag Harbor.

Prosecutors say Ludwick dragged Hansen’s body out of the convertible and left it by the road before trying to drive away in a car missing two wheels.

“The defendant not only killed his friend in cold blood and fled the scene, but now he’s tried to flee the country,” said Assistant District Attorney John Scott Prudenti.

advertisement | advertise on newsday

He credited U.S. marshals with tracking Ludwick from Puerto Rico to Miami and Connecticut before he returned to Sag Harbor, where Southampton town police arrested him.

Ludwick’s attorney, Benjamin Brafman of Manhattan, declined to comment.